electron-contextmenu-wrapper

5.0.0 • Public • Published

electron-contextmenu-wrapper

electron-contextmenu-wrapper was forked from electron-spellchecker to provide a robust context handling library that's also callable from inside of a webview preloader.

Quick Start

const {ContextMenuListener, ContextMenuBuilder} = require('electron-contextmenu-wrapper');

let contextMenuBuilder = new ContextMenuBuilder();
let contextMenuListener = new ContextMenuListener((event, info) => {
  contextMenuBuilder.showPopupMenu(info);
});

Additionally, there are

ContextMenuBuilder.prependContextMenuItem(new MenuItem(label: "Work!"))

and

ContextMenuBuilder.appendContextMenuItem(new MenuItem(label: "Smarter!"))

to customize the context menus.

Learning more

Package Sidebar

Install

npm i electron-contextmenu-wrapper

Weekly Downloads

0

Version

5.0.0

License

MIT

Unpacked Size

25.9 kB

Total Files

11

Last publish

Collaborators

  • thegoddessinari