ludo.menu.MenuItem


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
Name Type Description
icon String

Path to Icon for the menu item. If no period sign(.) is found in the icon, the text will be displayed
where the icon should be. example: icon: "myicon.png" to display the icon image, or icon: "!" to display the exclamation mark.

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