(^620) ❘ APPENDIX T TABLESORTER
headers An object representing options that can be provided
for each column. The object is defi ned 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 fi rst
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 defi nes an initial sorting for columns. Each
column is defi ned in an array in order from the column
sorted fi rst to the column sorted last. For example:
sortList : [
[0, 0],
[2, 1]
]
This setting sorts fi rst by the fi rst column, ascending. The
fi rst column is offset zero with another zero for
ascending [0, 0]. Then the third column is sorted
descending. The third column is offset two followed by
one for descending [2, 1].
Default value: null
Array
(continued)
http://www.it-ebooks.info
elliott
(Elliott)
#1