N°2847 Add Separator item to popover menu items

This commit is contained in:
Stephen Abello
2020-08-04 13:49:11 +02:00
parent d6ab310d24
commit f4f846496b
6 changed files with 54 additions and 0 deletions

View File

@@ -24,6 +24,7 @@ namespace Combodo\iTop\Application\UI\Component\PopoverMenu\PopoverMenuItem;
use ApplicationPopupMenuItem;
use JSPopupMenuItem;
use URLPopupMenuItem;
use SeparatorPopupMenuItem;
/**
* Class PopupMenuItemFactory
@@ -52,6 +53,9 @@ class PopoverMenuItemFactory
break;
case $oItem instanceof JSPopupMenuItem:
$sTargetClass = 'JsPopoverMenuItem';
break;
case $oItem instanceof SeparatorPopupMenuItem:
$sTargetClass = 'SeparatorPopoverMenuItem';
break;
default:
$sTargetClass = 'PopoverMenuItem';