3
3
* TableSorter 2.0 - Client-side table sorting with ease!
5
5
* @requires jQuery v1.2.3
7
7
* Copyright (c) 2007 Christian Bach
8
8
* Examples and docs at: http://tablesorter.com
9
9
* Dual licensed under the MIT and GPL licenses:
10
10
* http://www.opensource.org/licenses/mit-license.php
11
11
* http://www.gnu.org/licenses/gpl.html
16
16
* @description Create a sortable table with multi-column sorting capabilitys
18
18
* @example $('table').tablesorter();
19
19
* @desc Create a simple tablesorter interface.
21
21
* @example $('table').tablesorter({ sortList:[[0,0],[1,0]] });
22
22
* @desc Create a tablesorter interface and sort on the first and secound column column headers.
24
24
* @example $('table').tablesorter({ headers: { 0: { sorter: false}, 1: {sorter: false} } });
26
26
* @desc Create a tablesorter interface and disableing the first and second column headers.
29
29
* @example $('table').tablesorter({ headers: { 0: {sorter:"integer"}, 1: {sorter:"currency"} } });
31
31
* @desc Create a tablesorter interface and set a column parser for the first
32
32
* and second column.
36
36
* settings An object literal containing key/value pairs to provide
37
37
* optional settings.
40
40
* @option String cssHeader (optional) A string of the class name to be appended
41
41
* to sortable tr elements in the thead of the table. Default value:
44
44
* @option String cssAsc (optional) A string of the class name to be appended to
45
45
* sortable tr elements in the thead on a ascending sort. Default value:
48
48
* @option String cssDesc (optional) A string of the class name to be appended
49
49
* to sortable tr elements in the thead on a descending sort. Default
50
50
* value: "headerSortDown"
52
52
* @option String sortInitialOrder (optional) A string of the inital sorting
53
53
* order can be asc or desc. Default value: "asc"
55
55
* @option String sortMultisortKey (optional) A string of the multi-column sort
56
56
* key. Default value: "shiftKey"
58
58
* @option String textExtraction (optional) A string of the text-extraction
59
59
* method to use. For complex html structures inside td cell set this
60
60
* option to "complex", on large tables the complex option can be slow.
61
61
* Default value: "simple"
63
63
* @option Object headers (optional) An array containing the forces sorting
64
64
* rules. This option let's you specify a default sorting rule. Default
67
67
* @option Array sortList (optional) An array containing the forces sorting
68
68
* rules. This option let's you specify a default sorting rule. Default
71
71
* @option Array sortForce (optional) An array containing forced sorting rules.
72
72
* This option let's you specify a default sorting rule, which is
73
73
* prepended to user-selected rules. Default value: null
75
75
* @option Boolean sortLocaleCompare (optional) Boolean flag indicating whatever
76
76
* to use String.localeCampare method or not. Default set to true.
79
79
* @option Array sortAppend (optional) An array containing forced sorting rules.
80
80
* This option let's you specify a default sorting rule, which is
81
81
* appended to user-selected rules. Default value: null
83
83
* @option Boolean widthFixed (optional) Boolean flag indicating if tablesorter
84
84
* should apply fixed widths to the table columns. This is usefull when
85
85
* using the pager companion plugin. This options requires the dimension
86
86
* jquery plugin. Default value: false
88
88
* @option Boolean cancelSelection (optional) Boolean flag indicating if
89
89
* tablesorter should cancel selection of the table headers text.
90
90
* Default value: true
92
92
* @option Boolean debug (optional) Boolean flag indicating if tablesorter
93
93
* should display debuging information usefull for development.
97
97
* @name tablesorter
99
99
* @cat Plugins/Tablesorter
101
101
* @author Christian Bach/christian.bach@polyester.se