0.0
No commit activity in last 3 years
No release in over 3 years
Adding Mixitup in your rails app. MixItUp - A Filter & Sort Plugin https://mixitup.kunkalabs.com
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 1.7
~> 10.0
 Project Readme

MixitupRails

Adding Mixitup in your rails app. MixItUp - A Filter & Sort Plugin https://mixitup.kunkalabs.com

Installation

Add this line to your application's Gemfile:

gem 'mixitup_rails'

And then execute:

$ bundle

Or install it yourself as:

$ gem install mixitup_rails

Usage

add in app/assets/javascripts/application.js after jquery (below jquery)

//= require mixitup
    $('#Container').mixItUp(); // an instance now exists in the session memory

###Demoapp open the folder demoapp to view an example of mixitup app.

		$ git clone git@github.com:guinslym/mixitup_rails.git
		$ cd mixitup_rails/demoapp
		$ bundle install
		$ rails s
		#open your browser at http://localhost:3000/welcome/index

####Issues you may find with turbolink mixitup-rails-turbolinks and github issues' page link

$(function(){ // on first doc ready we instantiate mixitup
    $('#container').mixItUp(); // an instance now exists in the session memory
});
$(window).on('page:before-change', function(){ 
    $('#container').mixItUp('destroy'); // destroy the instance
});
$(window).on('page:load', function(){
    $('#container').mixItUp(); // We can now reinstantiate without being blocked
});

Contributing

  1. Fork it ( https://github.com/guinslym/mixitup_rails/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request