Hi Eleina,
if I do that then it works yes. Before I used a dialog like this:
v-for=“biller in billers”
button -> @click="showEditDialog(biller)
showEditDialog(biller: Biller) {
Dialog.create({
title: biller.title,
form: {
title: {
type: 'text',
label: 'name',
model: biller.title
},
amount: {
type: 'number',
label: 'amount',
model: biller.amount,
min: 0,
max: 9999
},
.....
Billers is an array that is declared in the data() method of Vue.
There was no need to have a variable like clicked or selectedBiller. Is it possible to do the same with a modal? Open it and at the same time passing the biller and index from the for loop?
Thank you
Johannes