Menu object

The Menu widget provides a list of selectable commands or options

Event Description
Menu:onClick() Event fired when the user clicks on a Menu item
Property Description Access Type
Menu.count get the count of menu items readonly number
Menu.items Get/set the Menu items readwrite table
Methods Description Return value
Menu:add() Append an item to the Menu
Menu:clear() Remove all items from the Menu -
Menu:constructor() Menu object constructor
Menu:insert() Insert an item in the Menu
Menu:remove() Remove an item from the Menu -