-
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
Filter widget: Add support for exact match #80
Comments
I have another request to support regex in issue #79, so I have an idea... What if you enter some kind of flag to indicate how to treat the string. These are just ideas, so any feedback would be appreciated.
I'm not sure if I should make it support straight regex since most users may not understand how to use it. |
I don't know if this plugin has a certain kind of end-user in mind; maybe it would be easiest to allow a For my application I was hoping to support case-sensitive regular expression matching if the query is delimited by slashes, and the current behavior otherwise. |
I really like the idea to be able to write my own callback function. I think this would be the most flexible way to handle custom filter needs. |
Well I ended up adding all of the suggestions... crazy huh? I split the filter widget demo into two and made a basic filter widget demo where you can type in The second demo shows how to use the new Enjoy! |
Awesome, thanks! |
Nice work! I really like the new filter function. Unfortunately the tablesorter.widgets.min.js file breaks some other function in my project. I'm using jqplot to draw some graphs. When the widget file is present in the html's head and I use the function to generate an image from the plotted graph ( For now I just remove the widget.js file from the relevant pages, fortunately I don't need both functions on the same page (yet). |
Hmm, the tablesorter function isn't Ahhh never mind.. that is a mistake on my part when formatting the minified version... I'll fix it. |
Fixed! Sorry! |
I have a table with values like
If I filter for example "value 2" the filter widget shows rows 2 and 4. If possible please add an option that makes it possible to do exact matching (the example above should only show row 2).
The text was updated successfully, but these errors were encountered: