Panel: Add SetSubtitleBlock()

This commit is contained in:
Molkobain
2021-03-05 10:16:16 +01:00
parent a1b6f09115
commit fc98bc781b

View File

@@ -191,6 +191,22 @@ class Panel extends UIContentBlock
return $this->oSubTitleBlock;
}
/**
* Set the subtitle from the $oBlock, replacing any existing content
*
* @see static::$oSubTitleBlock
*
* @param \Combodo\iTop\Application\UI\Base\iUIBlock $oBlock
*
* @return $this
*/
public function SetSubTitleBlock(iUIBlock $oBlock)
{
$this->oSubTitleBlock = $oBlock;
return $this;
}
/**
* Helper to set the subtitle from a simple text ($sSubTitle), replacing any existing block
*