I have a simple V-data-table. I am trying to add checkboxes for each row in the table.
My table looks like this.
<v-data-table :headers="headers" :items="rows"item-key="name" :search="search">
<template v-slot:item="props">
<tr >
<td v-for="(prop, key) in props.item" :key="key" @click="onClickItem(key, props.item[key])">
{{props.item[key]}}
</td>
<td>
<!-- Some icons for editing rows -->
</td>
</tr>
</template>
<template v-slot:top>
<!-- A dialog box for editing rows -->
</template>
</v-data-table>
I tried to use the official guide for doing this, however all my rows get shifted to the right by 1 position & I only see only one checkbox even though I have multiple rows, that too, on the header! How should I proceed?
v-data-table
tag - Sameer Pusegaonkar