tablesaw-rails
Just a ruby gem for asset pipeline which includes the tablesaw library.
Installation
Add this line to your application's Gemfile:
gem 'tablesaw-rails'
And then execute:
$ bundle
Or install it yourself as:
$ gem install tablesaw-rails
Usage
In your application.js:
//= require tablesaw/tables
Also, in your application.css:
*= require tablesaw/tables
Customization
You can also just cherry pick what you want on the tablesaw plugins.
Javascript
//= require tablesaw/tables.sortable
//= require tablesaw/tables.columntoggle
//= require tablesaw/tables.stack
//= require tablesaw/tables.swipetoggle
//= require tablesaw/tables.modeswitch
CSS
*= require tablesaw/tables.sortable
*= require tablesaw/tables.columntoggle
*= require tablesaw/tables.stack
*= require tablesaw/tables.swipetoggle
*= require tablesaw/tables.modeswitch
Contributing
- Fork it ( https://github.com/[my-github-username]/tablesaw-rails/fork )
- 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 a new Pull Request
License
MIT. Do what you want.