From 73335197173c38fd7e5467835bf08e92e9351162 Mon Sep 17 00:00:00 2001 From: Mottie Date: Mon, 8 Apr 2013 01:21:57 -0500 Subject: [PATCH] Added filter_liveSearch option --- docs/example-widget-filter.html | 15 +++++++++++++- docs/index.html | 35 +++++++++++++++++++++++--------- js/jquery.tablesorter.widgets.js | 3 ++- 3 files changed, 41 insertions(+), 12 deletions(-) diff --git a/docs/example-widget-filter.html b/docs/example-widget-filter.html index 320f3844..6b4ccb70 100644 --- a/docs/example-widget-filter.html +++ b/docs/example-widget-filter.html @@ -58,6 +58,10 @@ // css class applied to the table row containing the filters & the inputs within that row filter_cssFilter : 'tablesorter-filter', + // add custom filter elements to the filter row + // see the filter formatter demos for more specifics + filter_formatter : null, + // add custom filter functions using this option // see the filter widget custom demo for more specifics on how to use this option filter_functions : null, @@ -69,6 +73,9 @@ // Set this option to false to make the searches case sensitive filter_ignoreCase : true, + // if true, search column content while the user types (with a delay) + filter_liveSearch : true, + // jQuery selector string of an element used to reset the filters filter_reset : 'button.reset', @@ -76,6 +83,10 @@ // every character while typing and should make searching large tables faster. filter_searchDelay : 300, + // if true, server-side filtering should be performed because client-side filtering will be disabled, but + // the ui and events will still be used. + filter_serversideFiltering: false, + // Set this option to true to use the filter to find text from the start of the column // So typing in "a" will find "albert" but not "frank", both have a's; default is false filter_startsWith : false, @@ -186,14 +197,16 @@ $(function(){
  • filter_childRows : false - if true, filter includes child row content in the search.
  • filter_columnFilters : true - if true, a filter will be added to the top of each table column.
  • filter_cssFilter : 'tablesorter-filter' - css class name added to the filter row & each input in the row.
  • +
  • filter_formatter : null - add custom filter elements to the filter row.
  • filter_functions : null - add custom filter functions using this option.
  • filter_hideFilters : false - if true, filters are hidden initially, but can be revealed by clicking on the filter icon.
  • filter_ignoreCase : true - if true, make all searches case-insensitive.
  • +
  • filter_liveSearch : true - if true, search column content while the user types (with a delay).
  • filter_reset : null - jQuery selector string of an element used to reset the filters.
  • filter_searchDelay : 300 - typing delay in milliseconds before starting a search.
  • +
  • filter_serversideFiltering : false - if true, filter will be done server-side. The client-side filtering will be disabled, but the ui and events will still be used..
  • filter_startsWith : false - if true, filter start from the beginning of the cell contents.
  • filter_useParsedData : false - filter all data using parsed content.
  • -
  • filter_serversideFiltering : false - if true, server-side filtering should be performed because client-side filtering will be disabled, but the ui and events will still be used.
  • diff --git a/docs/index.html b/docs/index.html index fd891675..1447b8ae 100644 --- a/docs/index.html +++ b/docs/index.html @@ -298,12 +298,13 @@
  • Grouping rows Widget New v2.8.
  • Resizable Columns widget (v2.0.23.1; Updated v2.8.3)
  • Save sort widget (v2.0.27)
  • +
  • Scroller widget New v2.9.
  • Sticky header widget (v2.0.21.1)
  • UITheme widget: