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

Enable a menu item.

Params

  • id string

  • [enable] boolean = true

enableGroup(id, [enable]) ⇒ this

Enable a menu group.

Params

  • id string

  • [enable] boolean = true

removeItem(id) ⇒ this

Params

  • id string

removeGroup(id) ⇒ this

Params

  • id string

addGroup(menuGroup) ⇒ this

Append a new menu group.

Params

  • menuGroup Type.MenuItem

addItem(menuItem) ⇒ this

Append an item to the most recent group.

Params

  • menuItem Type.MenuItem

addSeparator() ⇒ this

Adds an line to the most recent group.

getItems() ⇒ 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