-
-
Notifications
You must be signed in to change notification settings - Fork 23
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
Can't run callback #1
Comments
Thanks! Sieve is awfully new (idea formed yesterday, and launched today). I'd be happy to consider adding a callback, but just so we're on the same page, are you asking for a callback to fire every time after results have been filtered? |
Yes. I need to integrate search functionality with my masonry grid. So the items would have to be removed with the masonry method: $container.masonry( 'remove', 'items') and then instant reload ( $container.masonry( 'reload' ); ). If possible. |
... and of course instantly appended with the masonry append method thanks. |
Okay. So it sounds like you're asking for perhaps two things.
Just brainstorming at the moment. Perhaps, this could be combined into one overall callback that passes a jquery wrapper argument representing the the list of items to hide and a list of the items to show. |
Yes that ought to do it. |
I added two callback functions, |
Very cool! |
Ok I am back and I found out how to do it. I wasn't that difficult and I ended up using a different plugin called jquery search which was recently added to the jQuery plugin repository. Here is the code. Im still a beginner so it might not be the best solution. Anyway, thanks for the effort. jQuery.extend( jQuery.fn, { $('#container').on('keyup','#searchM',function() {
}); |
Great plugin.
How can I run a callback with for instance: $('#container').masonry( 'reload' )?
The text was updated successfully, but these errors were encountered: