This is a ruby gem for the asset pipeline which includes Besite's jQuery.mmenu library.
Add this line to your application's Gemfile:
gem 'mmenu-rails'
And then execute:
$ bundle
Or install it yourself as:
$ gem install mmenu-rails
Modify your app/assets/javascripts/application.js
, adding:
//= require jquery.mmenu
Modify your app/assets/stylesheets/application.css
, adding:
*= require jquery.mmenu
Mmenu has various add-ons and extensions available. To use these in your project, simply include the relevant files in your Javascript and CSS manifests.
//= require jquery.mmenu.autoheight
//= require jquery.mmenu.backbutton
//= require jquery.mmenu.buttonbars
//= require jquery.mmenu.counters
//= require jquery.mmenu.dividers
//= require jquery.mmenu.dragopen
//= require jquery.mmenu.fixedelements
//= require jquery.mmenu.footer
//= require jquery.mmenu.header
//= require jquery.mmenu.oncanvas
//= require jquery.mmenu.offcanvas
//= require jquery.mmenu.searchfield
//= require jquery.mmenu.sectionindexer
//= require jquery.mmenu.toggles
*= require jquery.mmenu.autoheight
*= require jquery.mmenu.buttonbars
*= require jquery.mmenu.counters
*= require jquery.mmenu.dividers
*= require jquery.mmenu.dragopen
*= require jquery.mmenu.footer
*= require jquery.mmenu.header
*= require jquery.mmenu.height
*= require jquery.mmenu.oncanvas
*= require jquery.mmenu.offcanvas
*= require jquery.mmenu.searchfield
*= require jquery.mmenu.sectionindexer
*= require jquery.mmenu.toggles
*= require jquery.mmenu.borderstyle
*= require jquery.mmenu.effects
*= require jquery.mmenu.fullscreen
*= require jquery.mmenu.iconbar
*= require jquery.mmenu.multiline
*= require jquery.mmenu.pageshadow
*= require jquery.mmenu.positioning
*= require jquery.mmenu.themes
*= require jquery.mmenu.widescreen
You can also include all add-ons and extensions (not recommended for production!) by using
//= require jquery.mmenu.all
and
*= require jquery.mmenu.all
in your application.js and application.css, respectively.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
MIT. See License for more details.