Simple container to store a menu item
The constructor
Name | Type | Description |
---|---|---|
itemText | String | The text to be displayed in the menu |
isActive | Boolean | A flag indicating if the menu item can be selected in the menu |
action | Function | The action to execute when the item is selected |
A flag indicating if the menu item can be selected in the menu. Non selectable menu items are displayed in gray in the menu
The text to be displayed in the menu
Execute the action registered for the item
The action to execute when the item is selected
A flag indicating if the menu item can be selected in the menu. Non selectable menu items are displayed in gray in the menu
The text to be displayed in the menu