We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi there,
I only ever want to display for instance 6 filtr-items.
What is the best way to go about that? The only thing I could come up with is try to hide them in one of the callbacks.
Regards,
Cameron
The text was updated successfully, but these errors were encountered:
For future reference, in set options this seemed to work.
callbacks: { 'onFilteringEnd': function () { $('div.filtr-container div.filtr-item').filter(function() { return $(this).css('opacity') !== '0'; }).each(function(index) { if (index >= max_elements) { $(this).css('opacity', '0'); } }); } }
Sorry, something went wrong.
@bcccgreen looks like a fine solution, thanks for sharing
@giotiskl Actually in the end I did this with a pull request. Seems to work well.
#49
No branches or pull requests
Hi there,
I only ever want to display for instance 6 filtr-items.
What is the best way to go about that? The only thing I could come up with is try to hide them in one of the callbacks.
Regards,
Cameron
The text was updated successfully, but these errors were encountered: