- Editor.MainMenu
- Methods
- Editor.MainMenu.apply ()
- Editor.MainMenu.add (path, template)
- Editor.MainMenu.init ()
- Editor.MainMenu.remove (path)
- Editor.MainMenu.set (path, options)
- Editor.MainMenu.update (path, template)
- Methods
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
Sendmain-menu:add
to main process.
Editor.MainMenu.init ()
Send main-menu:init
to main process.
Editor.MainMenu.remove (path)
path
string - Menu path
Sendmain-menu:remove
to main process.
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
Sendmain-menu:set
to main process.
Editor.MainMenu.update (path, template)
path
string - Menu pathtemplate
array|object - Menu template
Sendmain-menu:update
to main process.