htmlelement-contextmenu
v0.8.3
Published
make a contextmenu on a html element
Downloads
5
Maintainers
Readme
htmlelement-contextmenu
The lastest version of this document is available on Github > htmlelement-contextmenu
Introduction
this class is used to create a context menu accessible by right-clicking on an html element.
- characteristics
- The menu can be controlled with the keyboard.
- The API allows to dynamically add / remove / activate / deactivate menu items
- Add an icon or/and keyboard shortcut to each menu item
- The menu design can be easily modified via the css
- Several contextual menus can coexist on the same web page.
- work on IE11, Firefox & Chrome
Installation
npm install htmlelement-contextmenu --save
or
yarn add htmlelement-contextmenu --save
prerequisites for browser
<script src="node_modules/htmlelement-contextmenu/distrib/htmlelement-contextmenu.min.js"></script>
API & Demo