Menus

(menus)

Returned Types

JSMenu,JSMenuItem,

Methods Summarized

Methods Detailed

createMenu(name)

Create a new, empty menu. Identifier must be unique among existing menus.

Parameters

  • String name the menu name (identifier)

Returns: JSMenu

Sample

var mnu = menus.createMenu('mymenu');

getMenu(name)

Gets a menu by name. Returns null if not found.

Parameters

  • String name the menu name (identifier)

Returns: JSMenu

Sample

var mnu = menus.getMenu('mymenu');

getMenus()

Returns all the menus, either created at design time or at runtime.

Returns: Array

Sample

var menus = menus.getMenus();

Last updated