ezResponsiveTable
If you need a EASY way to Responsive your table. You can give ezRtable a shot 🔫
Installation
1. Add this line to your application's Gemfile:
gem 'ez-rsponsive-table'And then execute: $ bundle
Or install it yourself as:
$ gem install ez-rsponsive-table
2. Add require ezRtable into your application.js
//= require jquery
//= require jquery.turbolinks
//= require jquery_ujs
...
//= require ezRtable
//= require turbolinks3. Add import ezRtable into your application.scss
@import "ezRtable";Usage
- Set
table-ezrin your table class. - Set
th-ezrin your th class which you wanna responsive - Set
td-ezrin your td class which you wanna responsive
Demo
Example
Check this jsfiddle, it's a simple use.
Reference
Source in Dudley Store's Opencode
License
The gem is available as open source under the terms of the MIT License.