The plugin function assigned to $.fn.tablesorter
.
Below go inner helper functions inside the plugin.
- License:
-
- MIT
- Source:
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(rowA, rowB)
-
Sorting function. Compares two rows' cells with numeric content.
Parameters:
Name Type Description rowA
HTMLTableRowElement one row object
rowB
HTMLTableRowElement another row object
- Source:
Returns:
number, depending on what value is greater given the sorting order.
- Type
- number
-
<inner> sortAsStrings(rowA, rowB)
-
Sorting function. Compares two rows' cells with textual content.
Parameters:
Name Type Description rowA
HTMLTableRowElement one row object
rowB
HTMLTableRowElement another 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> tablesorter(event)
-
Handles clicks on columns' headers. Does some checks and invokes row sorting.
Parameters:
Name Type Description event
MouseEvent event object corresponding to click on controls
- Source:
Returns:
- Type
- undefined
-
<inner> toggleBusyFlag()
-
Toggles plugin's busy flag.
- Source:
Returns:
- Type
- undefined
-
<inner> toggleSortingOrderForCol()
-
Toggles column's sorting order flag.
- Source:
Returns:
- Type
- undefined