From 094c17db12823dd266af23508140058b09c3a9c2 Mon Sep 17 00:00:00 2001 From: Mottie Date: Wed, 16 Apr 2014 12:52:25 -0500 Subject: [PATCH] Filter widget: add filter_placeholder global settings. Fixes #582 --- docs/example-widget-filter-any-match.html | 1 + docs/example-widget-filter-formatter-1.html | 26 +++++++++++++-- docs/index.html | 32 +++++++++++++++++++ ...ry.tablesorter.widgets-filter-formatter.js | 9 ++++-- js/jquery.tablesorter.widgets.js | 9 +++--- 5 files changed, 67 insertions(+), 10 deletions(-) diff --git a/docs/example-widget-filter-any-match.html b/docs/example-widget-filter-any-match.html index de3be495..e3421f55 100644 --- a/docs/example-widget-filter-any-match.html +++ b/docs/example-widget-filter-any-match.html @@ -32,6 +32,7 @@ filter_external : '.search', // include column filters filter_columnFilters: true, + filter_placeholder: { search : 'Search...' }, filter_saveFilters : true, filter_reset: '.reset' } diff --git a/docs/example-widget-filter-formatter-1.html b/docs/example-widget-filter-formatter-1.html index 51eac65f..627f80c5 100644 --- a/docs/example-widget-filter-formatter-1.html +++ b/docs/example-widget-filter-formatter-1.html @@ -155,6 +155,12 @@ changeYear : true }); } + }, + + // added v2.16 + filter_placeholder : { + from : 'From...', + to : 'To...' } } }); @@ -178,7 +184,8 @@

Notes