Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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!");
}
}]);
```