Scrollable table with fixed first row and column.
Add this line to your application's Gemfile:
gem 'stable-rails'
And then execute:
$ bundle
Or install it yourself as:
$ gem install stable-rails
In application.js include
//= require stable
In application.css include
*= require stable
To render a sample scrollable table
- stable do
- tr do
- td 'L\N'
- td 'Title 1'
- td 'Title 2'
- td 'Title 3'
- td 'Title 4'
- td 'Title 5'
- ('a'..'z').each do |c|
- tr do
- td "Title #{c}"
- td "#{c}1"
- td "#{c}2"
- td "#{c}3"
- td "#{c}4"
- td "#{c}5"
- 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