Share

Interface: CuiActionMenuItem

Properties:

    .id : guid : Read

The action menu item's unique ID.

    .isSeparator : boolean : Read

Gets whether this action menu item is a menu separator.

    .isAction : boolean : Read

Always returns true.

    .action : Interface : Read

Gets this CuiActionMenuItem.

    .isSubMenu : boolean : Read

Gets whether this action menu item is a sub menu. Sub menus generally have child menu items, exposed in the .subMenu property (below).

    .subMenu : Interface : Read

Gets the CuiMenu interface for this action menu item if it is a sub menu.

    .isDynamicMenu : boolean : Read

Gets whether this action menu item is dynamic.

    .parent : Interface : Read

Gets the parent for this menu item, or undefined if there is no parent.

    .actionItem : Interface : Read

Gets the action item for this action menu item.

    .title : string : Read|Write

Gets/sets the menu text for this action menu item.

    .isFlat : boolean : Read|Write

Gets/sets whether this action menu item is displayed in flat style when the underlying actionItem is a placeholder for a dynamic menu.

Using this option will omit the creation of a sub menu entry for this dynamic menu action in the parent menu and will instead place all of its dynamically created menu items directly into the parent menu.

Methods:

    <boolean>Move <guid>parentMenuId beforeId:<guid>
       Move - no automatic redraw after invoked
       beforeId default value: "00000000-0000-0000-0000-000000000000"

Moves this action menu item before the menu item specified by beforeId, in the parent menu specified by parentMenuId.

Was this information helpful?