electron-menu-plus

1.0.0 • Public • Published

electron-menu-plus

Linux Build Status Windows Build status Dependency Status devDependency Status

Improved menu operations for Electron.

Why?

  • Manipulate menu items by menu path (foo/bar/foobar for example)
  • Dynamically add and remove menu items
  • Dynamically change a menu item's state (enabled, checked, visible, ...)

Install

npm install --save electron-menu-plus

Run Examples:

npm start examples/${name}

Usage

const menuPlus = require('electron-menu-plus');
 
menuPlus.MainMenu.init();
menuPlus.MainMenu.add('My Menu', [
  {
    label: 'Foo',
    click () {
      console.log('Foo');
    }
  },
 
  {
    label: 'Bar',
    click () {
      console.log('Bar');
    }
  },
]);

API Reference

TODO

License

MIT © 2017 Johnny Wu

Readme

Keywords

Package Sidebar

Install

npm i electron-menu-plus

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • johnnywu