Menu object
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 |
Method | Description | Return value |
---|---|---|
Menu.constructor() | Menu object constructor | Menu |
Menu:add() | Append an item to the Menu | MenuItem |
Menu:insert() | Insert an item in the Menu | MenuItem |
Menu:remove() | Remove an item from the Menu | - |
Menu:clear() | Remove all items from the Menu | - |