-
Notifications
You must be signed in to change notification settings - Fork 754
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
widget filter feature request option for blur event #1522
Comments
Hi @CiTRO33! Hmm, maybe the easiest solution would be to remove the blur event listener (demo): $(function() {
$("table").tablesorter({
theme: "blue",
widgets: ["zebra", "filter"],
widgetOptions: {
filter_liveSearch: false
},
initialized: function(table) {
var namespace = table.config.namespace + "filter";
$(table).find(".tablesorter-filter").off("blur" + namespace);
}
});
}); |
thanks for the fast response and the great idea.
|
Hi @Mottie , I enter "c" in column "Major" , "tab"-key to column "Sex" enter "fe" and comfirm with "enter"-Key I would like to achieve that only "enter"-Key will trigger the search. Maybe is it possible with a new filter option where i can set key codes/events, which only will be accepted? ( liveSearch must be false) Possible values: If you have need more information or you have some other ideas let me know. |
Hello Mottie,
would it be possible to get a filterwidget option to control the blur event if the search is triggered?
https://github.com/Mottie/tablesorter/blob/master/js/widgets/widget-filter.js#L873
I would like to control the filtersearch is only triggered with the enter key or programmatically (search event).
I use the pager widget with serverside processing.
So f you need to filter multiple columns at the same time, on every "tab"-key the search is triggered and a ajax call is made. On complex tables the search take some time (1,2,3,... seconds) to complete.
If you need more Information, or you know a better way please leave a post.
Thank you very much.
Greetings
The text was updated successfully, but these errors were encountered: