metafizzy / isotope

:revolving_hearts: Filter & sort magical layouts

Home Page:https://isotope.metafizzy.co

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hiding items until filtering

Meseko opened this issue · comments

Is there a way of hiding all items and then display them based on ones filter?

@Meseko — do you mean clicking a filter that hides all items, and then re-displays only the filtered items? or do you mean having two filters, one that shows none and then another that shows all?

if you mean the former, i guess you could maybe use some combination of the methods hideItemElements and revealItemElements on click of whichever filter you would like (and then combine that with your filtering functions).