Appendix T

Tablesorter

Tablesorter Options
Option Description Type
cancelSelection Determines whether text in table header <th> elements should be selectable.Default value: true Boolean
cssAsc The class name to apply to a table header <th> that represents a column sorted ascending.Default value: 'headerSortUp' String
cssDesc The class name to apply to a table header <th> that represents a column sorted descending.Default value: 'headerSortDown' String
cssHeader The class name applied to a table header <th> representing a column in an unsorted state.Default value: 'header' String
debug Determines whether additional debugging information should be displayed, which is useful for development.Default value: false Boolean
headers An object representing options that can be provided for each column. The object is defined counting each column offset from zero. The only option allowed at the time of this writing is indicating whether a column is sortable.An example object that disables sorting on the first column:headers : { 0 : { sorter : false }}Default value: null Object
sortForce This option is used to assist with multicolumn sorting. For example, it can assist with sorting by name after sorting by other criteria such as by date or account balance or other criteria. The value used to specify this option follows the same pattern as the sortList option.Default value: null Array
sortList This option defines an initial sorting for columns. Each column is defined ...

Get Web Development with jQuery now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.