No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    [v1] QSlideItem How to identify item in the events left/right/action ?

    Framework
    2
    3
    532
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      mpr last edited by

      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.

      e.g.
      <q-list>
      <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.

      Thanks
      Martin

      1 Reply Last reply Reply Quote 0
      • lucasfernog
        lucasfernog last edited by

        You have to create a “wrapper” function: https://codepen.io/anon/pen/XGVqxe?editors=1011

        M 1 Reply Last reply Reply Quote 2
        • M
          mpr @lucasfernog last edited by

          @lucasfernog perfect, thanks a lot
          Martin

          1 Reply Last reply Reply Quote 0
          • First post
            Last post