eiriklv / react-masonry-component

A React.js component for using @desandro's Masonry
MIT License
1.44k stars 145 forks source link

how to filter selectItem just like example #3

Closed cswleocsw closed 8 years ago

cswleocsw commented 9 years ago

I don't know how to filter my selectItem? Is Masonry have support filter function like Isotope ?

eiriklv commented 8 years ago

@cswleocsw - You should be able to filter just by using .filter on the array of items you are putting into your masonry :-) This is the "React way" of doing it at least

afram commented 8 years ago

@cswleocsw I'm going to close this as resolved. Please reopen if you still need to discuss.

kaxevgg commented 7 years ago

@eiriklv in order to filter the masonry items would each item be passed a custom prop that the filter is based on?