Open squaremunkeygist opened 8 years ago
You could try just changing radio buttons to checkboxes. And then in app.js file change categoryFilter: ''
to categoryFilter: []
so to make it accept an array.
Thanks but it's not showing more then one filter. When i select two filters nothing shows. In the vue devtools the selected categories are showing up as an array but not on screen. Do i need to change something in the index for the array filter to work? thanks ivan
Yeah, doesn't work for me to. I think this functionallty doesn't come out of the box. You should probably write custom filter for something like that.
I have come to the same conclusion but unfortunately my knowledge of vue.js is very limited. But how would one go about filtering posts with an array of id's. The id's are being tagged by vue.js ( see attached screenshot of vue devotees). Any thoughts are welcome.
How would one transform the filterPosts function to work as a multiselect filter. ie using checkboxes to make multiple selections and select multiple categories? Thanks.