Answers for "vuetify data table expanded icon example"

0

vuetify data table expanded icon example

<v-data-table
  :headers="headers"
  :items="desserts"
  :expanded="expanded"
  item-key="name"
  show-expand
  class="elevation-1"
  @click:row="clicked">
Posted by: Guest on July-29-2020
0

vuetify data table expanded icon example

clicked (value) {
    const index = this.expanded.indexOf(value)
    if (index === -1) {
      this.expanded.push(value)
    } else {
      this.expanded.splice(index, 1)
    }
  },
Posted by: Guest on July-29-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language