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

  1. Fork it
  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 new Pull Request

Thanks

Thanks to twitter bootstrap.