diff --git a/README.md b/README.md index b7142f44..10884de5 100644 --- a/README.md +++ b/README.md @@ -44,6 +44,41 @@ tablesorter can successfully parse and sort many types of data including linked View the [complete listing here](https://github.com/Mottie/tablesorter/wiki/Change). +#### Version 2.13.3 (11/9/2013) + +* Pager (plugin/widget) + * Fixed initial filter settings when using pager ajax. Fixes [issue #388](https://github.com/Mottie/tablesorter/issues/388). + * Fixed ajax pager not recognizing column sorting. Fixes [issue #408](https://github.com/Mottie/tablesorter/issues/408). + * The core plugin now remove rows from table when using pager ajax. Fixes [issue #411](https://github.com/Mottie/tablesorter/issues/411). + +* Filter widget + * Renamed all variables & restructured the entire widget. + * Added better integration with the pager plugin/widget to minimize ajax server calls by getting default filter settings. Fixes [issue #388](https://github.com/Mottie/tablesorter/issues/388). + * Fixed filter formatter HTML5 spinner to properly find exact matches. + * Added a new fuzzy search parameter + * Fuzzy searches match sequential characters, similar to how Sublime Text searches work + * Start the search with a tilde `~` followed by any sequential characters to match. + * Examples: `~bee` will match both "Bruce Lee" and "Brenda Lee", `~bcd` will find "Brandon Clark" and `~piano` will find "Philip Aaron Wong" + * Added `filter_anyMatch` + * Set this option to `true` when using an external search filter. + * Setting this option should work properly with or without the column filters. The only issue you would have is if you triggered a search on the table using an array with undefined or null array values. + * Some limitations are applied when using any match. Search operators, range queries and not-matches are not allowed. + * See [the demo](http://mottie.github.io/tablesorter/docs/example-widget-filter-any-match.html) for examples & more details. + * Thanks to [@prainho](https://github.com/prainho) for the suggestion, code and feedback in [issue #405](https://github.com/Mottie/tablesorter/issues/405)! + * Modified the `bindSearch` function to allow using it on external filters: + * Use as follows: `$.tablesorter.filter.bindSearch( $('table'), $('.search') );` + * Binding the search input using this method allows the search to use `filter_liveSearch`, delayed searching and pressing escape to clear the search. + * See the [filter any match demo](http://mottie.github.io/tablesorter/docs/example-widget-filter-any-match.html) for example usage. + +* UITheme widget + * Added caption styling + * Updated css for jQuery UI theme and Bootstrap theme. + +* Theme, demo & doc updates + * Added jQuery UI theme switcher to [jQuery UI theme demo](http://mottie.github.io/tablesorter/docs/example-widget-ui-theme.html) & [jQuery UI filter formatter demo](http://mottie.github.io/tablesorter/docs/example-widget-filter-formatter-1.html). + * Added ignore articles parser to [saveSort widget demo](http://mottie.github.io/tablesorter/docs/example-widget-savesort.html). + * Updated history of changes made to `cssAsc`, `cssDesc` & `cssHeader` on the main documentation page. See [issue #407](https://github.com/Mottie/tablesorter/issues/407). + #### Version 2.13.2 (11/2/2013) * Updated pager & filter widget to work when the pager `countChildRows` option is `true`: diff --git a/docs/example-widget-filter-one-input.html b/docs/example-widget-filter-any-match.html similarity index 54% rename from docs/example-widget-filter-one-input.html rename to docs/example-widget-filter-any-match.html index 3916d756..29e802bd 100644 --- a/docs/example-widget-filter-one-input.html +++ b/docs/example-widget-filter-any-match.html @@ -2,7 +2,7 @@
-NOTE!
filter_anyMatch
option.filter_anyMatch
option (v2.13.3).> >= <= <
) is not allowed because tables that contain both numbers and text (in separate columns). For example:
+ "Fred" > "1" // true* +"Fred" < "10" // false +"Fred" > 1 // false (numeric comparisons occur with parsed table data) +"Fred" > 1 // false +"Fred" < 10 // false* For comparisons, letters have a greater ASCII value than numbers. +
1 - 10
) is not allowed because, if any columns contain text, then no rows will result. The examples are the same as the search operators examples above.!a
) is not allowed because tables that contain both numbers and text (in separate columns) will always show all rows. For example:
+ "Frank".search("a")) // 2 (a match, so this row "may" be hidden) +"Fred".search("a") // -1 (a not match! so this row will always show) +"25".search("a") // -1 (a not match! so this row will always show) +"1/1/2014".search("a") // -1 (a not match! so this row will always show)+
~
), exact match ("
), wild card matches( ?
or *
), regex (/\d/g
), and logical and (a && b
)/or (a|b
) matches.// apply "2?%" filter to the fifth column (zero-based index) +var columns = []; +columns[5] = '2?%'; +// anyMatch will kick in on undefined column filters, +// unless the array looks like this: columns = [ '', '', '', '', '', '2?%' ] +$('table').trigger('search', [ columns ]);