Closed ivlevdenis closed 7 years ago
@ivlevdenis
<vuetable v-ref="vuetable"
...
></vuetable>
new Vue({
//...
//...
methods: {
expandAllDetailRows: function() {
this.$refs.vuetable.visibleDetailRows = this.$refs.vuetable.tableData.map(function(item) {
return item.id
})
}
collapseAllDetailRows: function() {
this.$refs.vuetable.visibleDetailRows = []
}
}
})
Hmmmm... Excellent! ps: Please, add this to detail-row doc.
Please note that item.id
is really item[this.$refs.vuetable.trackBy]
if your data is not 'id' based.
How to?