I have a v-data-table that has some generic employee data. I wanted to know if I could get the exact value which I clicked on.
My current code is simple & a snippet of it looks like this.
EDIT: I am utilizing the CRUD-Actions Example from the official vuetify documentation: https://vuetifyjs.com/en/components/data-tables/
<v-data-table
:headers="headers"
:items="rows"
item-key="name"
:search="search" >
<template v-slot:top>
<!-- A dailog box is present here to edit the rows-->
</template>
<template v-slot:item.actions="{ item }">
<v-icon small class="mr-2" @click="editItem(item)">
mdi-pencil
</v-icon>
</template>
</v-data-table>
Also, is it possible to get its column name? (headers in the above code) Thanks!