Editor.Menu

Methods

Editor.Menu.popup (template[, x, y])

Send menu:popup to main process.

Editor.Menu.register (name, tmpl[, force])

Send menu:register to main process.

Editor.Menu.walk (template, fn)

Example:

Editor.Menu.walk(menuTmpl, item => {
  if ( item.params ) {
    item.params.unshift('Hello');
  }

  if (item.message === 'foobar:say-hello') {
    item.enabled = false;
  }
});