5.0.0 • Published 3 years ago

electron-contextmenu-wrapper v5.0.0

Weekly downloads
33
License
MIT
Repository
github
Last release
3 years ago

electron-contextmenu-wrapper

npm.io npm.io

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

5.0.0

3 years ago

4.0.4

3 years ago

4.0.3-rc.1

4 years ago

4.0.2

4 years ago

4.0.1

4 years ago

4.0.0

4 years ago

3.0.0

5 years ago

2.0.0

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.0.2

6 years ago

0.0.1

6 years ago