A drop-down menu that displays MenuItems about a gadget's metadata.
Extends
- module:explorer/widgets/DropDownMenu
- dijit/_WidgetsInTemplateMixin
- dojo/Evented
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. -
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. -
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. -
publishSelection(type)
-
Publishes a gadget's selection given the type.
Parameters:
Name Type Description type
String The type of the selection. -
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. -
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. -
startup()
-
Called right after widget is added to the dom. See link for more information.