0👍
computed: {
options_length: function () {
return this.item.options.length;
}
},
methods:{
onSelectChange (value) {
if (value.length == this.options_length && this.selectedAll === null) {
console.log(this.options_length);
this.selectedAll = true;
} else if (value.length == this.options_length && this.selectedAll === true) {
this.selectedOptions = [];
this.selectedAll = null;
}
// do the thing
},
👤juan
- [Vuejs]-How do I pass a dependency to a Vue component?
- [Vuejs]-How to display a datatable through an accordion
Source:stackexchange.com