[Vuejs]-How do i select just one expanded panel in Vuejs (vuetify) using the index?

0👍

It looks like you’ve copied your showHidePanel function from the docs. That function is designed to toggle all or none of the panels. To toggle just the panel at index use:

showHidePanel(index) {
  if (this.panel.indexOf(index)) {
    this.panel = this.panel.filter(i => i!=index);
  } else {
    this.panel.push(index);
  }
},

Leave a comment