Answer the question
In order to leave comments, you need to log in
Is it possible to sort cards in a vue component?
I'm making a website and I need to sort cards on it using a simple filter.
I have included vue.
So I have a simple site so I use vue as inline-template.
That is, I have a layout, I wrapped it in an inline-template and created a component. Filter checkbox clicks work with vue.
I also have a component with cards in this large component, and here the question arises, how to filter these cards? It's one thing if I displayed them in a component using for, then it's clear, but for me they just go with an html sheet that is wrapped in inline-template cards .
Answer the question
In order to leave comments, you need to log in
We need to make sure that they are displayed through v-for, and the cards themselves have a connection with some kind of array, then in order to sort the cards, you need to sort the array, and the display will pull up.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question