andy_at_prism

Thanks for the template, nice job. I'm […]

andy_at_prism PURCHASED
2 years ago
Hi, thanks for the template, nice job.
I'm trying to implement the isotopes plugin. I can initialize the plugin on a div using the data-toggle attribute, but how do I set a custom filter on the instance? I can't get a function in as a data-filter attribute (or maybe my syntax is wrong).

This doesn't work, eg. <div data-toggle="isotope-grid" data-isotope-options='{ "itemSelector": ".grid-item", "layoutMode": "masonry" }' data-isotope-filter="function(){ run_filter() }" class="row d-block grid">....</div>

Any ideas, please?
Thanks.