mirror of
https://github.com/Combodo/iTop.git
synced 2026-03-04 08:34:11 +01:00
N°5957 - actions rows order and color
This commit is contained in:
@@ -232,6 +232,9 @@ class DataTableUIBlockFactory extends AbstractUIBlockFactory
|
||||
array_key_exists('tooltip', $aAction) ? Dict::S($aAction['tooltip']) : '',
|
||||
array_key_exists('name', $aAction) ? $aAction['name'] : 'undefined'
|
||||
);
|
||||
if (array_key_exists('color', $aAction)) {
|
||||
$oButton->SetColor($aAction['color']);
|
||||
}
|
||||
$oButton->SetDataAttributes(['label' => Dict::S($aAction['label']), 'action-id' => $iKey, 'table-id' => $oTable->GetId()]);
|
||||
$oToolbar->AddSubBlock($oButton);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user