Marko:
Is it possible to have two values as an option in named script?In the first (typical) example, option parameter is ID.
@click=“namedAction(‘cancelReservation’, {ID: row.ID})”
Is it possible to have something like :
@click=“namedAction(‘cancelReservation’, {ID: row.ID}, {Amount: row.Amount}, )”
Delfs:
The 2nd argument is an object so you can put as much in as you want eg:
@click="namedAction('cancelReservation', {ID: row.ID, Amount: row.Amount} )"
// better
@click="namedAction('cancelReservation', {row: row} )"
// most modern
@click="namedAction('cancelReservation', {row} )"
// read with
action.options.row