new tablesorter()
Sets the plugin and makes it chainable by returning this
.
This:
- collection
- Source:
Returns:
returns collection of matched elements.
- Type
- object
Classes
Methods
-
<inner> getColIndex()
-
Gets column's index.
- Source:
Returns:
column's index.
- Type
- number
-
<inner> getValuesType()
-
Gets column values' datatype.
- Source:
Returns:
column values' datatype.
- Type
- string
-
<inner> sortAsNumbers(one, another)
-
Sorting function. Compares two rows' cells with numeric content.
Parameters:
Name Type Description one
HTMLTableRowElement row object
another
HTMLTableRowElement row object
- Source:
Returns:
number, depending on what value is greater given the sorting order.
- Type
- number
-
<inner> sortAsStrings(one, another)
-
Sorting function. Compares two rows' cells with textual content.
Parameters:
Name Type Description one
HTMLTableRowElement row object
another
HTMLTableRowElement row object
- Source:
Returns:
number, depending on what value is greater given the sorting order.
- Type
- number
-
<inner> sortRows()
-
Sorts table rows.
- Source:
Returns:
- Type
- undefined
-
<inner> toggleSortingOrderForCol()
-
Toggles column's sorting order flag.
- Source:
Returns:
- Type
- undefined