I'm building a vuetify <v-data-table>
with button icons on the right-most column. The button icons appear when a data row is hovered. I'd like the data row to expand when the row is clicked, but it's not working.
Current codepen implementation here
The code creates a <v-data-table>
as follows:
<v-data-table
:headers="headers"
:items="desserts"
item-key="name"
class="elevation-1"
:items-per-page="5"
:expanded.sync="expanded"
>
And this is the slot to expand the row:
<template v-slot:expanded-item="{ headers, item }">
<td :colspan="headers.length">More info about {{ item.name }}</td>
</template>
I'm hoping someone with vuetify experience can help me get the data table rows to expand when clicked. Thanks!