Socket
Socket
Sign inDemoInstall

electron-menu-plus

Package Overview
Dependencies
4
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    electron-menu-plus

Improved menu operations for Electron.


Version published
Weekly downloads
1
decreased by-50%
Maintainers
1
Install size
1.61 MB
Created
Weekly downloads
 

Readme

Source

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

Keywords

FAQs

Last updated on 26 Apr 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc