diff --git a/docs/index.html b/docs/index.html index dd6bb292..213c240b 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1489,10 +1489,15 @@ From the example function above, you'll end up with something similar to this HT Defines which method is used to extract data from a table cell for sorting (v2.17.0)

- In v2.17.0, the textExtraction column can also be referenced by using a jQuery selector (e.g. class name, id or column index).
+ In v2.17.0, the textExtraction column can also be referenced by using a jQuery selector (e.g. class name, id or column index) that points to a table header cell.
textExtraction : {
+    // 'jQuery thead cell selector' : function ( new method )
     '.styled' : function(node, table, cellIndex) {
         return $(node).find('strong').text();
+    },
+    // columnIndex : function ( original method )
+    2 : function(node, table, cellIndex) {
+        return $(node).find('img').attr('title');
     }
 }
Warning What won't work is if you try to target the header using a filtering selector that uses an index, e.g. "th:eq()", ":gt()", ":lt()", ":first", ":last", ":even" or ":odd", ":first-child", ":last-child", ":nth-child()", ":nth-last-child()", etc.
@@ -2293,7 +2298,7 @@ $(function(){ Filter widget: This option allows you to add custom controls within the filter widget row (v2.7.7; v2.17.0).

- In v2.17.0, the filter_formatter column can also be referenced by using a jQuery selector (e.g. class name or ID).
+ In v2.17.0, the filter_formatter column can also be referenced by using a jQuery selector (e.g. class name or ID) that points to a table header cell.
filter_formatter : {
     ".col-value" : function($cell, indx){
       return $.tablesorter.filterFormatter.uiSpinner( $cell, indx, {
@@ -2356,7 +2361,7 @@ $(function(){
 					Filter widget: Customize the filter widget by adding a select dropdown with content, custom options or custom filter functions (v2.3.6; v2.17.0).
 					

- In v2.17.0, the filter_functions column can also be referenced by using a jQuery selector (e.g. class name or ID).
+ In v2.17.0, the filter_functions column can also be referenced by using a jQuery selector (e.g. class name or ID) that points to a table header cell.
filter_functions : {
     ".col-date" : {
         "< 2004" : function (e, n, f, i) {
@@ -2721,7 +2726,7 @@ $('table').trigger('search', false);
Filter widget: Include a function to return an array of values to be added to the column filter select (v2.16.0; v2.17.2).

- In v2.17.0, the filter_selectSource column can also be referenced by using a jQuery selector (e.g. class name or ID).
+ In v2.17.0, the filter_selectSource column can also be referenced by using a jQuery selector (e.g. class name or ID) that points to a table header cell.
filter_selectSource : {
   ".model-number" : [ "abc", "def", "ghi", "xyz" ]
 }