Class ecm.widget.ActionMenu
Extends
dijit._Widget.
Provides a widget that is used as a context menu.
Defined in: <ecm\widget\ActionMenu.js>.
Constructor Summary
Constructor Attributes | Constructor Name and Description |
---|---|
Method Summary
Method Attributes | Method Name and Description |
---|---|
createMenu(actions, items, listType, callbackMap, repository, teamspace, resultSet, parameterMap)
For the specified actions, adds the visible actions as menu items to the action menu and returns the action
menu.
|
|
destroy()
|
|
Returns the children in the action menu.
|
|
getMenu(actionId)
Returns the menu item with the specified action id.
|
|
Creates the action menu.
|
Method Detail
createMenu(actions, items, listType, callbackMap, repository, teamspace, resultSet, parameterMap)
For the specified actions, adds the visible actions as menu items to the action menu and returns the action
menu.
- Parameters:
- actions
- Array of ecm.model.Action.
- items
- The selected items.
- listType
- Passed into isEnabled method of the action. A string value indicating the type of object in the items list.
- callbackMap
- Can be null.
- repository
- Instance of ecm.model.Repository.
- teamspace
- Instance of ecm.model.Teamspace.
- resultSet
- Instance of ecm.model.ResultSet.
- parameterMap
- Passed into performAction method of the action. An array of extra parameters to be passed to the action (can be null).
destroy()
getChildren()
Returns the children in the action menu.
getMenu(actionId)
Returns the menu item with the specified action id.
- Parameters:
- actionId
- String id of the ecm.model.Action.
- Returns:
- Menu item with the specified action id.
postCreate()
Creates the action menu.