1
My table is this down, I didn’t put variables because I don’t think you do. I just want to understand how to get all the inputs of a row when I click the button of the same row so I can send with Next.post.
<v-simple-table dense>
<template v-slot:default>
<thead>
<tr>
<th class="text-left">ID</th>
<th class="text-left">Nome</th>
<th class="text-left">Marca</th>
<th class="text-left">Ações</th>
</tr>
</thead>
<tbody>
<tr v-for="(item, index) in carros">
<td>
{{item.id}}
</td>
<td>
<v-text-field></v-text-field>
</td>
<td>
<v-text-field></v-text-field>
</td>
<td>
<v-btn small class="ma-2" color="primary" dark>
<i class="material-icons">
check_circle
</i>
</v-btn>
</td>
</tr>
</tbody>
</template>
</v-simple-table>
I don’t know if I need you to pass any id to the inputs.. I’d like to know. Thanks in advance for your attention!
You have to set the minimum complete example, there’s no way to know that way
– novic