Introduction:
Current version: 1.2.7
Author: Pekka Harjamäki
Code repository and release package available from github.
Current version can also be installed via npmjs or bower
Examples:
» Multicolumn sort and paging
» Table with custom class and sort disable on column 1
» Multiple tables on same page
» Table content via ajax request
» Sort start/end callbacks, localization, Ajax example 2
Note.
Now that the project is using Travis CI for testing, I have removed different jQuery versions. All demo pages use jQuery 2.2.1
Features
Main features include:
- Paging
- Sorting by multiple fields
- Create from existing table or from ajax content
- Sorting auto detects numeric, text and currency values
- Small code size. Currently about 6kB packed and 2kB gzipped.
Supported browsers:
- Firefox 21+
- Chrome 24+
- IE 10+
- Opera 15+
- Safari 6+
This plugin might work with other browsers and older versions, but these are the ones that are officially supported.
Changelog
- Ver 1.2.7 [ 8.3.2016 ]
- Column type detection ignores empty elements, this makes results more accurate
- Unit testing added for sorting text & numbers
- Ver 1.2.6 [ 7.3.2016 ]
- Now rows (tr in tbody) can also preserve attributes
- Ver 1.2.5 [ 4.3.2016 ]
- Fixed bug with ajax content
- Added automated JSLint and QUnit testing
- Ver 1.2.4 [ 17.7.2015 ]
- Fixed packing files.. once again
- Ver 1.2.3 [ 3.6.2015 ]
- Library target size increased from 5kB to 6kB :(
- Added preserve td attributes functionality
- HTML cleaning function had typo in it, so it failed to work
- Initial Column sort direction and sorted fields list can be set
- Data parser can be overridden using attribute 'sort-data' in TD element
- Multiple column sorting was broken in some cases
- Ver 1.2.2 [ 28.05.2015 ]
- Speeded up sorting in some cases
- Autodetection for date types (accepted formats: dd.mm.yyyy / dd-mm-yyyy / dd/mm/yyyy )
- Columns with sorting disabled get 'slimtable-unsortable' class for header th
- Ver 1.2.1 [ 27.05.2015 ]
- Small fixes to packaging files
- Ver 1.2.0 [ 27.05.2015 ]
- Added to bower repository
- Grunt is now used to build script