Module: explorer/widgets/MenuItemWidget

explorer/widgets/MenuItemWidget

An individual item in the DropDownMenu.
Source:
See:

Extends

  • dijit/_WidgetBase
  • dijit/_TemplatedMixin

Methods

addSubMenuItem(menuItem, opt_direction)

Adds a MenuItem to the child DropDownMenu of this MenuItem.
Parameters:
Name Type Description
menuItem MenuItemWidget The MenuItem to add.
opt_direction String The direction the submenu will display when moused over.
Source:

createSubMenu(menuItems, opt_direction)

Creates the submenu of the MenuItem if it doesn't exist yet and adds it to the dom in the specified direction.
Parameters:
Name Type Description
menuItems MenuItemWidget[] The array of MenuItems to add to the submenu.
opt_direction String The direction the submenu will display when moused over.
Source:

getSubMenuItem(menuName) → {MenuItemWidget}

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

removeSubMenuItem(menuName)

Removes a MenuItem from the child DropDownMenu of this MenuItem.
Parameters:
Name Type Description
menuName String The name of MenuItem to remove.
Source:

setSubMenuContent(menuItems, opt-direction)

Sets the MenuItem's submenu.
Parameters:
Name Type Description
menuItems MenuItemWidget[] The array of MenuItems to add to the submenu.
opt-direction String The direction the submenu will display when moused over.
Source:

startup()

Called right after widget is added to the dom. See link for more information.
Source:
See: