Class ecm.widget.listView.gridModules.RowContextMenu


Extends gridx.core._Module.
This module displays the context menu when the user right clicks or hits Shift F10. It also provides default action capability.
Defined in: <ecm\widget\listView\gridModules\RowContextMenu.js>.

Constructor Summary

Constructor Attributes Constructor Name and Description
 

Method Summary

Method Attributes Method Name and Description
 
See GridX API documentation for details.
 
getMenu(selectedItems, callback)
For the selectedItems, return the menu in the callback.
 
loadContextMenu(selectedItems, callback)
Load the context menu by loading it from the resultSet.
 
Perform the default action for the item at the specified evt row index.
 
Perform the default action for the item.
 
Listen to grid events such as onkeydown, onRowDblClick, onRowContextMenu, and oncontextmenu.

Constructor Detail

ecm.widget.listView.gridModules.RowContextMenu()

Method Detail

getAPIPath()

See GridX API documentation for details.

getMenu(selectedItems, callback)

For the selectedItems, return the menu in the callback.
Parameters:
selectedItems
The selected items.
callback
Method to call when complete.

loadContextMenu(selectedItems, callback)

Load the context menu by loading it from the resultSet. Provides a way for sub-modules to override this functionality.
Parameters:
selectedItems
The selected items.
callback
Callback called when complete.

performDefaultAction(evt)

Perform the default action for the item at the specified evt row index.
Parameters:
evt
The event.

performDefaultActionForItem(selectedItem)

Perform the default action for the item.
Parameters:
selectedItem
The selected item.

preload()

Listen to grid events such as onkeydown, onRowDblClick, onRowContextMenu, and oncontextmenu.