Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fouad/contextable
Contextable is a minimal context menu replacement.
https://github.com/fouad/contextable
Last synced: 2 months ago
JSON representation
Contextable is a minimal context menu replacement.
- Host: GitHub
- URL: https://github.com/fouad/contextable
- Owner: fouad
- Created: 2013-08-26T19:15:56.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-08-26T22:08:37.000Z (over 11 years ago)
- Last Synced: 2024-11-10T11:56:25.571Z (3 months ago)
- Language: CoffeeScript
- Size: 117 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Contextable
===========Contextable is a minimal context menu replacement.
You can install via Bower.
## Usage
```javascript
$(".clickable").contextable([{
html: " Add Class",
handler: function(e, ev) {
$(ev.target).addClass('basic');
}
}, {
html: " Remove Class",
handler: function(e, ev) {
$(ev.target).removeClass('basic');
}
}, {
html: " Free Transform",
handler: function(e, ev) {
console.log("transform everything!");
}
}]);
```