Module: explorer/widgets/DropDownMenu

explorer/widgets/DropDownMenu

A drop-down menu that displays MenuItems.
Source:
See:

Extends

  • dijit/_WidgetBase
  • dijit/_TemplatedMixin

Methods

addMenuItem(menuItem)

Adds a MenuItem to the menu.
Parameters:
Name Type Description
menuItem MenuItemWidget The MenuItem to add.
Source:

clearMenuItems()

Clears all existing MenuItems in the menuItems array.
Source:

getMenuItem(menuName) → {MenuItemWidget}

Gets a MenuItem from the menuItems array.
Parameters:
Name Type Description
menuName String The name of MenuItem to retrieve.
Source:
Returns:
The MenuItem that matches the name.
Type
MenuItemWidget

removeMenuItem(menuName)

Removes a MenuItem from the menuItems array.
Parameters:
Name Type Description
menuName String The name of MenuItem to remove.
Source: