new ludo.menu.Context(config)
Context menu class. You can create one or more context menus for a component by using the
ludo.View.contextMenu config array,
Parameters:
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
config |
Object |
Properties
|
- Source:
Example
new ludo.Window({ contextMenu:[{ selector : '.my-selector', children:[{label:'Menu Item 1'},{label:'Menu item 2'}], listeners:{ click : function(menuItem, menu){ // Do something } } }] });
Extends
- menu.Menu
Methods
-
getSelectedRecord()
-
when recordType property is defined, this will return the selected record of parent applyTo,
example: record in a tree- Source:
Returns:
object record