Allow to add Html to side panel block

This commit is contained in:
Stephen Abello
2021-03-03 17:08:09 +01:00
parent 6d7d6e9531
commit 866d6e829b

View File

@@ -20,6 +20,7 @@
namespace Combodo\iTop\Application\UI\Base\Layout\PageContent;
use Combodo\iTop\Application\UI\Base\Component\Html\Html;
use Combodo\iTop\Application\UI\Base\iUIBlock;
/**
@@ -87,6 +88,19 @@ class PageContentWithSideContent extends PageContent {
return $this;
}
/**
* Add $sHtml to the side blocks
*
* @param string $sHtml
*
* @return $this
*/
public function AddSideHtml(string $sHtml) {
$this->AddBlockToContentArea(static::ENUM_CONTENT_AREA_SIDE, new Html($sHtml));
return $this;
}
/**
* Remove the side block identified by $sBlockId.
* Note that if no block with that ID exists, it will proceed silently.