- Copyright:
- Copyright (C) 2005-2020 Alfresco Software Limited
- License:
- GNU Lesser General Public License, see: Open Source Licensing
- Source:
Extends
Mixes In
Members
-
cssRequirements :object[]
-
An array of the CSS files to use with this widget.
Type:
- object[]
- Default Value:
- [{cssFile:"./css/AlfMenuBarPopup.css"}]
- Source:
-
i18nScope :string
-
The scope to use for i18n messages.
Type:
- string
- Default Value:
- "org.alfresco.Menus"
- Source:
-
iconAltText :string
-
Type:
- string
- Source:
-
iconSrc :string
-
If an optional iconSrc is provided, the menu icon will be rendered using that image instead of the transparent one.
Type:
- string
- Source:
-
labelWithIconClass :string
-
This CSS class is added to the container node when an icon is to be included with the label. By default it simply makes room for the icon - but this can be overridden.
Type:
- string
- Default Value:
- "alf-menu-bar-popup-label-node"
- Source:
-
showArrow :boolean
-
Used to indicate whether or not to display a down arrow that indicates that this is a drop-down menu. True by default.
Type:
- boolean
- Default Value:
- true
- Source:
Methods
-
createIconNode()
-
Creates a DOM element to hold an icon for the menu.
- Since:
- 1.0.59
- Source:
-
postCreate()
-
Sets the label of the menu item that represents the popup and creates a new alfresco/menus/AlfMenuGroups instance containing all of the widgets to be displayed in the popup. Ideally the array of widgets should be instances of alfresco/menus/AlfMenuGroup (where instance has its own list of menu items). However, this widget should be able to accommodate any widget.
- Source:
-
postMixInProperties()
-
It's important to perform label encoding before buildRendering occurs (e.g. before postCreate) to ensure that an unencoded label isn't set and then replaced.
- Source: