Answer the question
In order to leave comments, you need to log in
Vuejs + Vuetify. I generate tables on the page on button click. v-slot for editing. How to get row index with table index?
Through v-for tables on the page are generated.
For data editing I use v-slot. The example itself is taken from the vuetify docs - https://vuetifyjs.com/en/components/data-tables/#c...
There are edit buttons in the template:
<template v-slot:item.actions="{item}">
<v-icon
small
class="mr-2"
@click="editItem(item)"
>
mdi-pencil
</v-icon>
<v-icon
small
@click="deleteItem(item)"
>
mdi-delete
</v-icon>
</template>
djob: {
diecut_cut_name: '',
bleed: '',
razmeshenie: '',
digitaljob_num: '',
customer_id: '8',
color_print: 'cmyk',
descript: 'описание',
frames: [],
},
frame: {
frame_num: '',
descript: '',
rows: [],
},
row: {
row_number: NaN,
design_url: '',
design_angle_rotate: 0,
descript: '',
},
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question