mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 02:28:44 +02:00
Pull up additionalCSSClasses from Button & UiContentBlock to UiBlock
This will allow to use this everywhere ! Before this commit we had : UiContentBlock aCSSClasses GetCssClasses SetCssClasses // reset + add, existing callers AddCSSClasses Button $aAdditionalCSSClasses GetAdditionalCSSClass AddCSSClasses Now we have : UiBlock aAdditionalCSSClasses AddCSSClasses SetCSSClasses GetAdditionalCSSClass Note that there were also some methods in PopoverMenuItem : PopoverMenuItem SetCssClasses AddCssClass GetCssClasses As they are indirection to methods in the $oPopupMenuItem attribute, I added to them the "MenuItem" prefix : SetMenuItemCssClasses AddMenuItemCssClass GetMenuItemCssClasses Didn't find any use to change.
This commit is contained in:
@@ -29,9 +29,9 @@ class FormTable extends StaticTable
|
||||
/** @var iUIBlock[] */
|
||||
private $aRows;
|
||||
|
||||
public function __construct(string $sRef, string $sContainerCSSClass = '')
|
||||
public function __construct(string $sRef, string $sContainerCSSClasses = '')
|
||||
{
|
||||
parent::__construct($sRef, $sContainerCSSClass);
|
||||
parent::__construct($sRef, $sContainerCSSClasses);
|
||||
$this->SetRef($sRef);
|
||||
$this->aRows = [];
|
||||
}
|
||||
|
||||
@@ -51,10 +51,10 @@ class StaticTable extends UIContentBlock
|
||||
* ]
|
||||
*/
|
||||
private $aData;
|
||||
|
||||
public function __construct(string $sId = null, string $sContainerCSSClass = '')
|
||||
|
||||
public function __construct(string $sId = null, string $sContainerCSSClasses = '')
|
||||
{
|
||||
parent::__construct($sId, $sContainerCSSClass);
|
||||
parent::__construct($sId, $sContainerCSSClasses);
|
||||
$this->aColumns = [];
|
||||
$this->aData = [];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user