mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-25 11:38:44 +02:00
Add icons on PopoverMenu items and allow to add them through PopupMenu API
This commit is contained in:
@@ -236,6 +236,12 @@ class PopoverMenuFactory
|
||||
if (!empty($aAction['css_classes'])) {
|
||||
$oPopoverMenuItem->SetCssClasses($aAction['css_classes']);
|
||||
}
|
||||
if (!empty($aAction['icon_class'])) {
|
||||
$oPopoverMenuItem->SetIconClass($aAction['icon_class']);
|
||||
}
|
||||
if (!empty($aAction['tooltip'])) {
|
||||
$oPopoverMenuItem->SetTooltip($aAction['tooltip']);
|
||||
}
|
||||
$aItems[] = $oPopoverMenuItem;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user