Skip to content

jkaipr/jquery_context_menu-rails

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Updated to jQuery-contextMenu 1.65 and removed jquery.ui.position.js


Ruby Gem for jQuery contextMenu Plug-In

This gem wraps the jQuery context menu plug-in (https://github.com/medialize/jQuery-contextMenu) for convenient use in Rails 3. jQuery-contextMenu is a jQuery plug-in that pops up a menu when the user right clicks on an element to which the menu is assigned.

Usage

To include the plug-in in your rails application, modify your Gemfile to includ the following:

gem "jquery_context_menu-rails"

Next add the following line to app/assets/javascripts/application.js:

//= require jquery.contextMenu.js

And, in app/assets/stylesheets/application.css.scss add:

//= require jquery.contextMenu.css

These additions will make the jQuery-contextMenu plug-in available on all pages. If you want to limit it to a subset of pages, require the .js and .css files in the appropriate Rails Javascript and CSS files.

For documentation on how to use the context menu, please see the original jQuery-contextMenu site.

License

$.contextMenu is published under the MIT license and GPL v3, as is this package.

About

This gem wraps the jQuery-contextMenu plugin (https://github.com/medialize/jQuery-contextMenu) for use in Rails 3.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%