Module: alfresco/menus/AlfMenuBar

alfresco/menus/AlfMenuBar

This widget is the base to be used when constructing menus. Typically this widget should be configured with
a combination of menu bar items and
popup menus (although custom menu widgets could also be included).
This widget supports keyboard navigation using the cursor keys and enter or space for selection (please note that
using the tab key will jump to the next widget - tab is not used to navigate items within the menu bar).

The default menu bar behaviour is for all popup menus to appear
below the menu bar, however it is possible to configure this widget so that they appear above the menu bar by
configuring the popupMenusAbove attribute to be true.

i18nRequirements :Array

Type:

i18nScope :String

Type:

popupMenusAbove :boolean

In some circumstances it may be required to have the popup menus
appear above the menu bar (e.g. if the menu bar is at the bottom of a page or layout control). This attribute
can be configured to be true in order to support that requirement. The default value is false which will result
in popup menus being displayed below the menu bar.

allWidgetsProcessed(widgets)

Parameters:

lockPopupsOpen(b)

This function has been provided to set the _lockPopupsOpen attribute in the custom MenuBar implementation
(declared above) to prevent the _closeChild function from executing. This function (and the associated
custom MenuBar) has been implemented to handle calls from the alfresco/header/UserStatus widget which
needs to prevent the MenuBar from closing popups when the dijit/form/Textarea used for capturing user
status has focus.