diff --git a/README.markdown b/README.markdown index 064058b1..da7f5ad1 100644 Binary files a/README.markdown and b/README.markdown differ diff --git a/css/blue/blue.zip b/css/blue/blue.zip index 90f259fa..7b24d0e6 100644 Binary files a/css/blue/blue.zip and b/css/blue/blue.zip differ diff --git a/css/blue/style.css b/css/blue/style.css index ff5d281c..acb1b4ba 100644 --- a/css/blue/style.css +++ b/css/blue/style.css @@ -95,7 +95,8 @@ table.tablesorter tr.even td.tertiary { } /* filter widget */ -table.tablesorter input.tablesorter-filter { +table.tablesorter input.tablesorter-filter, +table.tablesorter select.tablesorter-filter { width: 95%; height: inherit; -webkit-box-sizing: border-box; @@ -108,7 +109,8 @@ table.tablesorter tr.tablesorter-filter td { background: #fff; } /* optional disabled input styling */ -table.tablesorter input.tablesorter-filter.disabled { +table.tablesorter input.tablesorter-filter.disabled, +table.tablesorter select.tablesorter-filter.disabled { opacity: 0.5; filter: alpha(opacity=50); } \ No newline at end of file diff --git a/css/green/green.zip b/css/green/green.zip index f902ac4d..35385087 100644 Binary files a/css/green/green.zip and b/css/green/green.zip differ diff --git a/css/green/style.css b/css/green/style.css index 1df236f2..cccb61d9 100644 --- a/css/green/style.css +++ b/css/green/style.css @@ -87,7 +87,8 @@ table.tablesorter tr.even td.tertiary { } /* filter widget */ -table.tablesorter input.tablesorter-filter { +table.tablesorter input.tablesorter-filter, +table.tablesorter select.tablesorter-filter { width: 95%; height: inherit; -webkit-box-sizing: border-box; @@ -100,7 +101,8 @@ table.tablesorter tr.tablesorter-filter td { background: #fff; } /* optional disabled input styling */ -table.tablesorter input.tablesorter-filter.disabled { +table.tablesorter input.tablesorter-filter.disabled, +table.tablesorter select.tablesorter-filter.disabled { opacity: 0.5; filter: alpha(opacity=50); } \ No newline at end of file diff --git a/css/ui/style.css b/css/ui/style.css index 84b02b53..4f9b1e11 100644 --- a/css/ui/style.css +++ b/css/ui/style.css @@ -47,7 +47,8 @@ table.tablesorter .tablesorter-hidden { } /* filter widget */ -table.tablesorter thead tr.tablesorter-filter input.tablesorter-filter { +table.tablesorter thead tr.tablesorter-filter input.tablesorter-filter, +table.tablesorter thead tr.tablesorter-filter select.tablesorter-filter { width: 95%; height: inherit; -webkit-box-sizing: border-box; @@ -59,7 +60,8 @@ table.tablesorter thead tr.tablesorter-filter td { text-align: center; } /* optional disabled input styling */ -table.tablesorter thead tr.tablesorter-filter input.tablesorter-filter.disabled { +table.tablesorter thead tr.tablesorter-filter input.tablesorter-filter.disabled, +table.tablesorter thead tr.tablesorter-filter select.tablesorter-filter.disabled { opacity: 0.5; filter: alpha(opacity=50); } \ No newline at end of file diff --git a/docs/example-widget-filter-custom.html b/docs/example-widget-filter-custom.html new file mode 100644 index 00000000..67cc3598 --- /dev/null +++ b/docs/example-widget-filter-custom.html @@ -0,0 +1,335 @@ + + + + + jQuery plugin: Tablesorter 2.0 - Custom Filter Widget + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +

+ NOTE! + Custom filter widget option filter_functions was added in version 2.3.6: +

+

+ +

Demo

+ filter_startsWith : false (if true, search from beginning of cell content only)
+ filter_ignoreCase : true (if false, the search will be case sensitive) + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
First Name Last NameCityAgeTotalDiscountDate
AaronJohnson SrAtlanta35$5.9522%Jun 26, 2004 7:22 AM
AaronJohnsonYuma12$2.995%Aug 21, 2009 12:21 PM
ClarkHenry JrTampa51$42.2918%Oct 13, 2000 1:15 PM
PeterHenryNew York28$9.9920%Jul 6, 2006 8:14 AM
JohnHoodBoston33$19.9925%Dec 10, 2002 5:14 AM
ClarkKent SrLos Angeles18$15.8944%Jan 12, 2003 11:14 AM
JohnKent EsqSeattle45$153.1944%Jan 18, 2021 9:12 AM
PeterJohnsMilwaukee13$5.294%Jan 8, 2012 5:11 PM
AaronEvanChicago24$14.1914%Jan 14, 2004 11:23 AM
BruceEvansUpland22$13.1911%Jan 18, 2007 9:12 AM
ClarkMcMastersPheonix18$55.2015%Feb 12, 2010 7:23 PM
DennisMastersIndianapolis65$123.0032%Jan 20, 2001 1:12 PM
JohnHoodFort Worth25$22.0917%Jun 11, 2011 10:55 AM
+ +

Javascript

+
+

+	
+ +

HTML

+
+

+	
+ +
+
+ Next up: jQuery UI theme widget ›› +
+ +
+ + + + diff --git a/docs/example-widget-filter.html b/docs/example-widget-filter.html index 4e32f0f7..a4bd7377 100644 --- a/docs/example-widget-filter.html +++ b/docs/example-widget-filter.html @@ -29,7 +29,7 @@ // initialize zebra striping and filter widgets widgets: ["zebra", "filter"], - headers: { 5: { sorter: false, filter: false } }, + // headers: { 5: { sorter: false, filter: false } }, widgetOptions : { @@ -50,10 +50,13 @@ // Delay in milliseconds before the filter widget starts searching; This option prevents searching for // every character while typing and should make searching large tables faster. - filter_searchDelay : 300 + filter_searchDelay : 300, + + // See the filter widget advanced demo on how to use these special functions + filter_functions : {} } - +// ,debug: true }); }); @@ -92,6 +95,20 @@ $(function(){

NOTE!