Skip to content

linjunpop/jquery-tablesorter-rails

Folders and files

NameName
Last commit message
Last commit date
Nov 1, 2012
Nov 1, 2012
Nov 7, 2012
May 28, 2012
Jun 1, 2012
Jul 24, 2012
Feb 13, 2012
Oct 21, 2011
Nov 7, 2012
Nov 1, 2012
Feb 13, 2012

Repository files navigation

jQuery Table Sorter plugin for Rails

Simple integration of jquery-tablesorter into the asset pipeline.

Current tablesorter version: 2.4.6 (10/25/2012), documentation

Any issue associate with the js/css files, please report to Mottie's fork.

NOTICE:

v0.0.5 users, from v1.0.0, this gem will use Mottie's fork 😄.

Installation

Add this line to your application's Gemfile:

gem 'jquery-tablesorter'

And then execute:

$ bundle

Or install it yourself as:

$ gem install jquery-tablesorter

Requirements

Rails 3.1 and higher

Usage

JavaScript files

In your application.js

//= require jquery-tablesorter

This will require all jquery-tablesorter files (exclude addons).

Or you can include single file with:

//= require jquery-tablesorter/jquery.metadata
//= require jquery-tablesorter/jquery.tablesorter
//= require jquery-tablesorter/jquery.tablesorter.widgets
//= require jquery-tablesorter/addons/pager/jquery.tablesorter.pager

Stylesheet files

In your application.css

/*
 *= require jquery-tablesorter/<theme name>
 */

Avaliable theme names:

  • theme.black-ice
  • theme.blue
  • theme.bootstrap
  • theme.dark
  • theme.default
  • theme.dropbox
  • theme.green
  • theme.grey
  • theme.ice
  • theme.jui

pager theme:

/*
 *= require jquery-tablesorter/addons/pager/jquery.tablesorter.pager
 */

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

About

[:warning: MOVED] Simple integration of jquery-tablesorter into the asset pipeline.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages