N°2847 - FieldSet, MultiColumn, Tab for object details CSS

This commit is contained in:
Eric
2020-09-24 10:45:14 +02:00
parent 7bf473d2a3
commit ecd5a7aadf
13 changed files with 168 additions and 54 deletions

View File

@@ -25,12 +25,15 @@ class Title extends UIBlock
protected $sTitle;
/** @var int */
protected $iLevel;
/** @var string */
protected $sIconHtml;
public function __construct(string $sTitle = '', int $iLevel = 1, ?string $sId = null)
{
parent::__construct($sId);
$this->sTitle = $sTitle;
$this->iLevel = $iLevel;
$this->sIconHtml = null;
}
/**
@@ -48,4 +51,21 @@ class Title extends UIBlock
{
return $this->iLevel;
}
public function SetIcon(string $sIconHtml): self
{
$this->sIconHtml = $sIconHtml;
return $this;
}
public function GetIcon(): string
{
return $this->sIconHtml;
}
public function HasIcon(): string
{
return !is_null($this->sIconHtml);
}
}