Editor.MainMenu
The main menu module for manipulating main menu items.
Methods
Editor.MainMenu.apply ()
Apply main menu changes.
Editor.MainMenu.add ( path, template )
path
string - Menu pathtemplate
array|object - Menu template
Build atemplate
into menu item and add it topath
Editor.MainMenu.init ()
Init main menu.
Editor.MainMenu.remove ( path )
path
string - Menu path
Remove menu item atpath
.
Editor.MainMenu.set ( path, options )
path
string - Menu pathoptions
objecticon
NativeImage - A NativeImageenabled
booleanvisible
booleanchecked
boolean - NOTE: You must set your menu-item type to 'checkbox' to make it work
Set options of a menu item atpath
.
Editor.MainMenu.update ( path, template )
path
string - Menu pathtemplate
array|object - Menu template
Build atemplate
into menu item and update it topath
Properties
Editor.MainMenu.menu
Get main menu instance for debug purpose