This widget can be used to group menu items within a popup menu such as an AlfMenuBarPopup
or a AlfCascadingMenu. When an item is added to any AlfMenuGroups
popup such as in those widgets then a new instance will automatically be wrapped any child widget that is not in a group.
- Copyright:
- Copyright (C) 2005-2020 Alfresco Software Limited
- License:
- GNU Lesser General Public License, see: Open Source Licensing
- Source:
Members
-
cssRequirements :object[]
-
An array of the CSS files to use with this widget.
Type:
- object[]
- Default Value:
- [{cssFile:"./css/AlfMenuGroup.css"}]
- Source:
-
label :string
-
The label for the group. If this is left as the empty string then the group label node will be hidden completely. The value assigned to label can either be an i18n property key or a value but an attempt will be made to look up the assigned value in the available i18n keys.
Type:
- string
- Source:
-
templateString :string
-
The HTML template to use for the widget.
Type:
- string
- Source:
Methods
-
_onLeftArrow(evt)
-
Overrides the inherited function in order to address the additional Alfesco object placed in the chain between the Dojo menu objects.
Parameters:
Name Type Description evt
object - Source:
-
_onRightArrow(evt)
-
Overrides the inherited function in order to address the additional Alfesco object placed in the chain between the Dojo menu objects.
Parameters:
Name Type Description evt
object - Source:
-
_setSelected(bool)
-
Added to support use in context menus
Parameters:
Name Type Description bool
boolean - Source:
-
constructor()
-
- Source:
-
findMenuBarAncestor()
-
This function will work up the stack of menus to find the first menu bar in the stack. This is required because of the additional grouping capabilities that have been added to the basic Dojo menu widgets. In the core Dojo code the "parentMenu" attribute is used to work up the stack but not all widgets in the Alfresco menu stack have this attribute (and it was not possible to set it correctly during the widget processing phase).
- Source:
Returns:
Either null if a menu bar cannot be found or a menu bar widget. -
isFocusable()
-
- Source:
-
postCreate()
-
Sets the group label and creates a new alfresco/menus/AlfDropDownMenu to contain the items in the group.
- Source: