-
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 don't use textExtraction rules #149
Comments
Hi GammaNu! There is a filter widget option named I hope that clears things up! :) |
Hi, i've seen that, but it look like an other way to get the same result, it don't change anything about textExtraction that's not used in filter widget, and so a fix could help the users, like me, who have used the textExtration property earlier. But yes, i will use the other method to get it work fast ;) |
The So you've got it all working now? |
sure but with filter_useParsedData true, it don't use textExtraction func. It should, isn't-it ? I've not tried an other way yet (not enougth time, i hope i will be able to try it soon) |
The Here is another way to say it:
|
so this should work : $(".tabExplicit").tablesorter({
textExtraction: myExtractionFunc,
widgets: ['columns', 'filter', 'stickyHeaders', 'zebra'],
widgetOptions : {
filter_useParsedData : true
}
}); and it don't :( |
Ahh, you're right! That causes a javascript error in the filter widget script. I'll have it fixed soon. After the update, check out this demo I've set the Also the // extract text from the table
textExtraction: function(node) {
if ($('span[title]', node).length > 0) {
return $('span[title]', node).eq(0).attr('title');
} else {
var txt = $(node).text();
return txt === '-' ? '-0.000001' : txt;
}
} |
Great ! It works perfectly ! Thanks ! |
I use a custom function for textExtraction and it's perfect for sort actions. But the filter widget don't use it for filtering, it use the default text content instead.
Here an exemple :
html sample
JS config and textExtraction function
I hope an easy fix in the filter widget is possible !
The text was updated successfully, but these errors were encountered: