set default filter
See original GitHub issueHi again, your docs say “Full support of Isotope options via options parameters” but setting a default filter doesn’t work.
isotopeOptions: {
itemSelector: '.oc-product',
filter: 'filter1', // what must be entered here? css class? or same as in getFilterData?
getFilterData: {
"show all": function() {
return true
},
filter1: function(el) {
return el.type === 'filter1'
}
}
}
Is this possible? If so, how?
Thank you!
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
How to dynamically set default values for quick filters
So, the final trick to dynamically set and change the quick filter value is to use the action filter as a quick filter...
Read more >Create a default filter for list selector records
You can set a default filter to restrict which related records users can select when editing a reference field. Default filters are simple ......
Read more >Setting the Default Filter Setting
The default filter setting is applied automatically when you access Asset Answers. If you do not have a default setting defined, in the...
Read more >Setup Default Filters
These filters will apply to every new title that you watch. This means if you set your Default Filters, watch a movie, and...
Read more >How to set (or change) a default filter on a dashboard
Then click the 'settings' tab at the top right side of your screen. Click 'Default saved filter' and select the filter of choice....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
In version 3.1.0, it is possible to set default filter using filter parameter:
As you see, this is “full support” of isotope options 😉
I tried to test it but I get an error when the component is initialized:
Cannot read property 'getFilterData' of undefined
So it seems that the
_isotopeOptions
variable is undefined. Weird thing is, if I change the package.json to use the non minified version of the component (src/vue_isotope.js
), this works great. I don’t see the 3.1.0 release here in gitHub either. Could it be a problem with the published dist code?