diff --git a/docs/index.html b/docs/index.html index deede16e..2c395fa3 100644 --- a/docs/index.html +++ b/docs/index.html @@ -974,28 +974,32 @@ // See example - Disable first header cell; parser false skips extracting content 0: { sorter: false, parser: false }, - // See example 2: Sort column numerically & treat any text as if its value is: - 1: { sorter: "digit", empty: "top" }, // zero; sort empty cells to the top - 2: { sorter: "digit", string: "max" }, // maximum positive value - 3: { sorter: "digit", string: "min" }, // maximum negative value + // WARNING! The "ipAddress" parser was MOVED into the "parser-network.js" file + // in v2.18.0 + 1: { sorter: "ipAddress" }, - // Sort the fifth column by date & set the format - 4: { sorter: "shortDate", dateFormat: "yyyymmdd" }, // year first format + // See example 2: Sort column numerically & treat any text as if its value is: + 2: { sorter: "digit", empty: "top" }, // zero; sort empty cells to the top + 3: { sorter: "digit", string: "max" }, // maximum positive value + 4: { sorter: "digit", string: "min" }, // maximum negative value + + // Sort the sixth column by date & set the format + 5: { sorter: "shortDate", dateFormat: "yyyymmdd" }, // year first format // See example 3: lock the sort order // this option will not work if added as metadata - 5: { lockedOrder: "asc" }, + 6: { lockedOrder: "asc" }, - // See Example 4: Initial sort order direction of seventh header cell - 6: { sortInitialOrder: "desc" }, + // See Example 4: Initial sort order direction of 8th header cell + 7: { sortInitialOrder: "desc" }, // Set filter widget options for this column // See the "Applying the filter widget" demo - 7: { filter: false }, // disable filter widget for this column - 8: { filter: "parsed" }, // use parsed data for this column in the filter search + 8: { filter: false }, // disable filter widget for this column + 9: { filter: "parsed" }, // use parsed data for this column in the filter search // Set resizable widget options for this column - 9: { resizable: false } // prevent resizing of header cell 9 + 10: { resizable: false } // prevent resizing of the 11th column } }); @@ -6410,7 +6414,7 @@ $('.tablesorter')[0].config.cache[0].normalized[0];
$.tablesorter.parsers
). Here is a complete list of default parsers:
+ $.tablesorter.parsers
). Here is a complete list of default parsers: (modified v2.18.0)
sorter: "text" | Sort alpha-numerically. |
---|---|
sorter: "digit" | Sort numerically. |
sorter: "currency" | Sort by currency value (supports "£$€¤¥¢"). |
sorter: "image" | Sort by image alt value (see imgAttr option). |
sorter: "image" | Sort by image alt value (see imgAttr option; added in v2.18.0). |
sorter: "ipAddress" | Sort by IP Address; Warning This parser was moved to the parser-network.js file in v2.18.0. |
sorter: "url" | Sort by url. |
sorter: "isoDate" | Sort by ISO date (YYYY-MM-DD or YYYY/MM/DD; these formats can be followed by a time). |
sorter: "shortDate" | Sort by a shortened date (see dateFormat ; these formats can also be followed by a time). |
sorter: "time" | Sort by time (23:59 or 12:59 pm). |
sorter: "metadata" | Sort by the sorter value in the metadata - requires the metadata plugin. |
headers
option to see how to use these parsers in your table (example #1).Check out the headers
option to see how to use these parsers in your table (example #1).