I am currently facing an issue in my app while using v-data-table. I am able to pass props with an extra slot, but I want the entire row to be clickable in order to open a dialog with the prop item
:
<template v-slot:item.actions="{ item }">
<div><v-icon small class="mr-2" @click="openInDialog(item)"> mdi-arrow-right </v-icon></div>
</template>
The code snippet below is functional for triggering the function, however, I am unsure how to pass just one item within that function:
<v-data-table
@click:row="openEquipmentInDialog()"
style="cursor: pointer"
></v-data-table>