https://github.com/arnaucube/class2context
javascript library, to add context menu functionallity to html page
https://github.com/arnaucube/class2context
Last synced: 3 months ago
JSON representation
javascript library, to add context menu functionallity to html page
- Host: GitHub
- URL: https://github.com/arnaucube/class2context
- Owner: arnaucube
- License: gpl-3.0
- Created: 2016-07-15T09:53:40.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-17T19:57:17.000Z (about 8 years ago)
- Last Synced: 2025-03-26T21:38:28.864Z (4 months ago)
- Language: JavaScript
- Size: 1.01 MB
- Stars: 6
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# class2context
javascript library, to add context menu functionallity to html pageDemo: http://arnaucode.com/demos/class2context
Referenced in: http://www.cssscript.com/lightweight-context-menu-library-class2context-js/

### Installation
```
bower install class2context --save
```### Usage
First, include the files
```html```
Then, for each class, call the function
```js
class2context('className', "title for contextmenu", [["option 1", "function1()"], ["option 2","function2()"]]);
```
Another example:
```js
array=[
["Menu 1", "function1()"],
["Menu 2", "function2()"],
["Menu 3", "function3()"],
];
class2context('demoClass', "Menu Title Here", array);
```