new ludo.menu.MenuItem(config, disabled, label, action, orientation, spacer)
Class for menu items. MenuItems are created dynamically from config object(children of ludo.menu.Menu or ludo.menu.Context)
Parameters:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
config |
Object |
Properties
|
||||||
disabled |
Boolean | True to initially disable the menu item |
||||||
label |
String | Text for the menu item |
||||||
action |
String | Useful when adding click events to the parent menu. Determine what to do based on the clicked menu item's action attribute. |
||||||
orientation |
String | Useful when adding click events to the parent menu. Determine what to do based on the clicked menu item's action attribute. |
||||||
spacer |
Boolean | Spacer menu item. Creates a non-clickable spacer between menu items. |
- Source:
Fires:
- ludo.menu.item#click Fired on click. Arguments: 1) ludo.menu.event:Item
Extends
- View