[v1] QSlideItem How to identify item in the events left/right/action ?
When you have a list of QSlideItems how do you know in the events which item was dragged ?
Maybe I am overlooking a solution but like Serge in Discord, I think that it’s necessary to pass additional data to the QSlideItem events which seems not to be possible.
<q-slide-item v-for="(item,index) in items" :key=“index” @left=“onLeft(index)”>
There is a codepen https://codepen.io/anon/pen/GzaMXv?editors=1011 from serge with a full example.
lucasfernog last edited by
You have to create a “wrapper” function: https://codepen.io/anon/pen/XGVqxe?editors=1011
@lucasfernog perfect, thanks a lot