https://github.com/skipperbent/simple-bootstrap-contextmenu
Simple jQuery context-menu for Bootstrap
https://github.com/skipperbent/simple-bootstrap-contextmenu
Last synced: 5 months ago
JSON representation
Simple jQuery context-menu for Bootstrap
- Host: GitHub
- URL: https://github.com/skipperbent/simple-bootstrap-contextmenu
- Owner: skipperbent
- Created: 2016-05-24T18:03:48.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-05-24T18:10:09.000Z (about 10 years ago)
- Last Synced: 2026-02-10T03:37:22.712Z (5 months ago)
- Language: HTML
- Homepage:
- Size: 4.88 KB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Bootstrap Context Menu
======================
A context menu extension of Bootstrap made for everyone's convenience.
Demo available here: http://rawgit.com/skipperbent/simple-bootstrap-contextmenu/master/index.html
Installation
------------
`bower install simple-bootstrap-contextmenu`
Example
-------
Create context-menu
```html
```
```js
$("#myTable td").contextMenu({
menuSelector: "#contextMenu",
menuSelected: function (invokedOn, selectedMenu) {
var msg = "You selected the menu item '" + selectedMenu.text() +
"' on the value '" + invokedOn.text() + "'";
alert(msg);
}
});
```
### Adding animation
The css attribute `visible` will be added to the context-menu when visible. You can use this class to add CSS animations to the context-menu.
### License
MIT