I am working with a v-data-table
displaying generic employee data. I'm trying to find out how I can retrieve the exact value of the cell that I click on.
This is a snippet of my current code:
Note: The CRUD-Actions Example from the official vuetify documentation is being used in this scenario: https://vuetifyjs.com/en/components/data-tables/
<v-data-table
:headers="headers"
:items="rows"
item-key="name"
:search="search" >
<template v-slot:top>
<!-- A dialog box for editing rows is located here -->
</template>
<template v-slot:item.actions="{ item }">
<v-icon small class="mr-2" @click="editItem(item)">
mdi-pencil
</v-icon>
</template>
</v-data-table>
Furthermore, I want to know if it's feasible to obtain the column name as well (based on the headers in the provided code). Thanks!