bootstrap-scrolltable-rails
Table with fixed header for Twitter Bootstrap
Installation
Add this line to your application's Gemfile:
group :assets do
gem 'bootstrap-scrolltable-rails'
end
And then execute:
$ bundle install
Stylesheets Add necessary stylesheet file to app/assets/stylesheets/application.css
*= require bootstrap-scrolltable
Javascripts Add necessary javascript(s) files to app/assets/javascripts/application.js
//= require bootstrap-scrolltable
Usage
Via JavaScript
$('#scrolltable').scrolltable()
Methods
.scrolltable() Initializes a table with scrolltable.
Contributing
- 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
Thanks
Thanks to twitter bootstrap.