Answer the question
In order to leave comments, you need to log in
How to organize filter logic from a list of checkboxes in vue.js?
I have a list of checkboxes, one of which is all, the list must meet the following conditions:
1) Initially, everything is displayed, if we select at least one checkbox from the listing, then checked is removed from all.
2) Checkboxes can be selected until we select all, and then checked is removed from all and set to all.
3) While we have not put down all the checkboxes in the listing, you can set it to all at any time and everything returns to its original state.
Krivo was able to implement a couple of conditions, but something tells me that the approach itself is not correct, and maybe it’s worth separating all and the rest of the list of checkboxes?
Here is my fiddle .
Answer the question
In order to leave comments, you need to log in
So ?
something tells me that the approach itself is not correct
perhaps it is generally worth separating all and the rest of the list of checkboxes?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question