-
Notifications
You must be signed in to change notification settings - Fork 753
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 filter row doesn't inspect if the column is visible (i.e. display: none) #731
Comments
Hi @maestrofjp! I believe that issue has been fixed. Are you using the latest version of the plugin? Edit: Actually, I stand corrected. I was thinking about something else. You can get around this by including the // add "hidden-phone" class to 3rd column
filter_cssFilter: [ '', '', 'hidden-phone' ] |
Thanks for the suggestion @Mottie . I tried it, but the class I feel like the filter when it builds the search row, that it should look in the corresponding column |
Try using the $(function () {
$('table')
.on('filterInit', function(e, c){
c.$filters.eq(2).addClass('green');
})
.tablesorter({
theme: 'blue',
widgets: ['zebra', 'filter']
});
}); |
Thanks for the suggestion. I ended up doing some muckering about. It's not ideal, but at least I it introspects the
|
LOL, ok, I think I'll work on adding a new option allows setting the cell class name as well. I was thinking about adding a callback, but that would get tricky if the developer adds filters using the I think in the next major iteration, I'll just let you set an option to target a pre-built filter row and then have the widget work out the rest. |
Thanks so much! |
We use bootstrap 2's
.hidden-phone
attribute to hide columns on small displays -- this make thedisplay
attribute of a column set tonone
. When using the filter widget (the one that adds an extra row with search fields), it has too many<td>
s because it doesn't look to see if the column is actually visible.I'd come up with a PR but I'm unsure how you'd want to solve it. If you gave me some insight, I would gladly write a PR for you.
The text was updated successfully, but these errors were encountered: