Web Development with jQuery (2015)
Part IV. Appendices
Appendix T. Tablesorter
Tablesorter Options |
||
Option |
Description |
Type |
cancelSelection |
Determines whether text in table header <th> elements should be selectable. |
Boolean |
cssAsc |
The class name to apply to a table header <th> that represents a column sorted ascending. |
String |
cssDesc |
The class name to apply to a table header <th> that represents a column sorted descending. |
String |
cssHeader |
The class name applied to a table header <th> representing a column in an unsorted state. |
String |
debug |
Determines whether additional debugging information should be displayed, which is useful for development. |
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. |
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. |
Array |
sortList |
This option defines an initial sorting for columns. Each column is defined in an array in order from the column sorted first to the column sorted last. For example: |
Array |
sortMultiSortKey |
This option indicates which keyboard modifier to use to select more than one column for sorting. |
String |
textExtraction |
Defines which method to use to grab text from a table cell for sorting. String options include 'simple' and 'complex'. 'simple' does not take into account any markup that might be present preceding table cell text. 'complex' takes markup into account but can be slow when dealing with large data sets. |
String, Function |
widthFixed |
Determines whether fixed widths should be used for columns. |
Boolean |