Answer the question
In order to leave comments, you need to log in
Vue how to select all checkboxes?
Hello everyone, I have a question
, I have a table, there is a checkbox component, a copy of the component is generated for each row, through $emit I listen to this component and get its status from the parent with id,
how can I select or remove all checkbox components, using pure js it's easy I can, but using vue, is it possible?
Answer the question
In order to leave comments, you need to log in
You need to store an object in the parent component that will contain the states of the child checkboxes.
values = {
id: value,
....
};
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question