0π
β
I donβt have the custom component code such as b-table
, but what you would like to do is the following
https://vuetifyjs.com/en/components/data-tables/#expandable-rows
- Basically a separate array tracking which rows are currently open.
- Assuming
b-table
extendsv-data-table
, pass through the:expanded
property and add the tracking array. - On details open, set the array to
[]
, which should close everything. - And immediately afterwards, set the index of the row you want to open to 1.
See the above Vuetify link for an example of how they do it, make sure to toggle the "Single Expand" option.
Source:stackexchange.com