bootstrap-table-rails Gem Version

bootstrap-table-rails provides the bootstrap-table plugin as a Rails engine to use it within the asset pipeline.

Installation

Add this to your Gemfile:

gem "bootstrap-table-rails"

and run bundle install.

Usage

In your application.js, include the following:

//= require bootstrap-table
//= require bootstrap-table-all
//= require bootstrap-table-locale-all

In your application.css, include the following:

/*
 *= require bootstrap-table
 *= require extensions/bootstrap-table-reorder-rows
 */

Dir tree:

└── vendor
    └── assets
        ├── javascripts
        │   ├── bootstrap-table-all.js
        │   ├── bootstrap-table-locale-all.js
        │   ├── bootstrap-table.js
        │   └── extensions
        │       ├── bootstrap-table-angular.js
        │       ├── bootstrap-table-cookie.js
        │       ├── bootstrap-table-editable.js
        │       ├── bootstrap-table-export.js
        │       ├── bootstrap-table-filter-control.js
        │       ├── bootstrap-table-filter.js
        │       ├── bootstrap-table-flat-json.js
        │       ├── bootstrap-table-key-events.js
        │       ├── bootstrap-table-mobile.js
        │       ├── bootstrap-table-multiple-sort.js
        │       ├── bootstrap-table-natural-sorting.js
        │       ├── bootstrap-table-reorder-columns.js
        │       ├── bootstrap-table-reorder-rows.js
        │       ├── bootstrap-table-resizable.js
        │       └── bootstrap-table-toolbar.js
        └── stylesheets
            ├── bootstrap-table.css
            └── extensions
                └── bootstrap-table-reorder-rows.css

Examples

See the demo page for examples how to use the plugin

License

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