[SOLVED] How to use @row-click with scoped slots
-
The documentation for
@row-click
statesEmitted when user clicks/taps on a row; Is not emitted when using body/row/item scoped slots
How can I have this behaviour (calling a function) when clicking on a row that is built through a scoped slot?
One idea I had is to use
<q-tr :props="props" @click="displayNote(props)" >
but I did not find a way to pass to the function the actual content of the row.
-
I found it. The code is indeed what I used in my question, and the content of the row is in
props.row