Module: explorer/widgets/gadgetarea/GadgetDropDownMenu

explorer/widgets/gadgetarea/GadgetDropDownMenu

A drop-down menu that displays MenuItems about a gadget's metadata.
Source:
See:

Extends

Requires

Methods

addAction(action)

Adds a gadget's actions to a MenuItemWidget in the GadgetDropDownMenu.
Parameters:
Name Type Description
action Object The action object in the gadget's metadata to add.
Source:

addMenuItem(menuItem)

Adds a menu item to the drop down menu.
Parameters:
Name Type Description
menuItem module:explorer/widgets/MenuItemWidget The menu item to add.
Source:

addMenuItem(menuItem)

Adds a menu item to the drop down menu.
Parameters:
Name Type Description
menuItem module:explorer/widgets/MenuItemWidget The menu item to add.
Source:

publishSelection(type)

Publishes a gadget's selection given the type.
Parameters:
Name Type Description
type String The type of the selection.
Source:

removeAction(action)

Removes a gadget's actions from a MenuItemWidget in the GadgetDropDownMenu.
Parameters:
Name Type Description
action Object The action object in the gadget's metadata to remove.
Source:

setViews(views)

Adds a gadget's views to a MenuItemWidget in the GadgetDropDownMenu.
Parameters:
Name Type Description
views Object The views object in the gadget's metadata.
Source:

startup()

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