From 8738ac316147dce65dc06c549c098e578b2ed1c5 Mon Sep 17 00:00:00 2001 From: Rob Garrison Date: Thu, 29 Dec 2016 07:58:55 -0600 Subject: [PATCH] Docs: More notes on moving "ipAddress". See #1344 --- docs/index.html | 35 ++++++++++++++++++++--------------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/docs/index.html b/docs/index.html index deede16e8..2c395fa35 100644 --- a/docs/index.html +++ b/docs/index.html @@ -974,28 +974,32 @@

Configuration

// See example - Disable first header cell; parser false skips extracting content 0: { sorter: false, parser: false }, + // WARNING! The "ipAddress" parser was MOVED into the "parser-network.js" file + // in v2.18.0 + 1: { sorter: "ipAddress" }, + // 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 + 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 fifth column by date & set the format - 4: { sorter: "shortDate", dateFormat: "yyyymmdd" }, // year first format + // 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 @@

Variables

Array - Internal list of all of the table's currently set parsers (objects copied from $.tablesorter.parsers). Here is a complete list of default parsers: + Internal list of all of the table's currently set parsers (objects copied from $.tablesorter.parsers). Here is a complete list of default parsers: (modified v2.18.0)

@@ -6419,7 +6423,7 @@

Variables

- + @@ -6428,8 +6432,9 @@

Variables

-
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.

- Check out the headers option to see how to use these parsers in your table (example #1).
Or add a header class name using "sorter-" plus the parser name (example #2), this includes custom parsers (example #3). + +

Check out the headers option to see how to use these parsers in your table (example #1).

+ Or add a header class name using "sorter-" plus the parser name (example #2), this includes custom parsers (example #3).