Menu
Methods | |
done() | |
load([menuRows]) | Loads a new menu. Defaults to the standard menu. |
enableItem(id, [enable]) ⇒ | Enable a menu item. |
enableGroup(id, [enable]) ⇒ | Enable a menu group. |
removeItem(id) ⇒ | |
removeGroup(id) ⇒ | |
addGroup(menuGroup) ⇒ | Append a new menu group. |
addItem(menuItem) ⇒ | Append an item to the most recent group. |
addSeparator() ⇒ | Adds an line to the most recent group. |
getItems() ⇒ | Get all menu items in an array. |
insertItem(menuItem, [insertAfterMenuItemID]) |
done()
load([menuRows])
Loads a new menu. Defaults to the standard menu.
Params
[menuRows]
*
enableItem(id, [enable]) ⇒ this
this
Enable a menu item.
Params
id
string
[enable]
boolean
= true
enableGroup(id, [enable]) ⇒ this
this
Enable a menu group.
Params
id
string
[enable]
boolean
= true
removeItem(id) ⇒ this
this
Params
id
string
removeGroup(id) ⇒ this
this
Params
id
string
addGroup(menuGroup) ⇒ this
this
Append a new menu group.
Params
menuGroup
Type.MenuItem
addItem(menuItem) ⇒ this
this
Append an item to the most recent group.
Params
menuItem
Type.MenuItem
addSeparator() ⇒ this
this
Adds an line to the most recent group.
getItems() ⇒ Array.<any>
Array.<any>
Get all menu items in an array.
insertItem(menuItem, [insertAfterMenuItemID])
Params
menuItem
Type.MenuItem
[insertAfterMenuItemID]
any
Example
Last updated