Menu
Methods
done()
load([menuRows])
Loads a new menu. Defaults to the standard menu.
enableItem(id, [enable]) ⇒ this
Enable a menu item.
enableGroup(id, [enable]) ⇒ this
Enable a menu group.
removeItem(id) ⇒ this
removeGroup(id) ⇒ this
addGroup(menuGroup) ⇒ this
Append a new menu group.
addItem(menuItem) ⇒ this
Append an item to the most recent group.
addSeparator() ⇒ this
Adds an line to the most recent group.
getItems() ⇒ Array.<any>
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
$$.Menu.insertItem({
appid: 'favoritelist',
id: 'favoritelist',
text: 'Favorites'
}, 'opportunitylist')
Last updated
Was this helpful?