David-Desmaisons / Vue.Isotope

:iphone: Vue component for isotope filter & sort magical layouts
MIT License
345 stars 48 forks source link

Add the ability to use element sizing #57

Open JJCLane opened 6 years ago

JJCLane commented 6 years ago

Without these changes, adding static markup inside the isotope slot breaks filtering. For example given the following markup, the filtering functions receive undefined values.

<div class="grid-sizer" :key="-1"></div>
<div class="gutter-sizer" :key="-2"></div>

Now it's possible to add an ignore class to any items you don't want to affect the grid. E.g.

<div class="grid-sizer ignore" :key="-1"></div>
<div class="gutter-sizer ignore" :key="-2"></div>