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

    Pass data to touch hold handler

    Help
    4
    4
    544
    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.
    • A
      andrezipf94 last edited by andrezipf94

      Hello,

      I’m trying to build a component which is a QList that can be touch held to bring up an action sheet.

      The issue I’m facing is that I cant pass any data to the handler function for the hold “event”. I need to do so to redirect the user to the correct page after an action has been selected.

      I’ve simulated my idea at https://codepen.io/andrezipf94/pen/BxvKLQ. Is it possible to pass the held item info to the handler function that way?

      Edit: Also, can I listen for a click event in an entire line of the list? I’ve tried adding a button surrounding it, but it messed the text up.

      1 Reply Last reply Reply Quote 1
      • L
        luis.gilbert last edited by

        Hi!

        Did you find a way for this?

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

          bit late but here you go

          https://codepen.io/anon/pen/ZVgZNz

          R 1 Reply Last reply Reply Quote 3
          • R
            RobbeV @benoitranque last edited by

            @benoitranque said in Pass data to touch hold handler:

            bit late but here you go

            https://codepen.io/anon/pen/ZVgZNz

            Thank you so much! I’ve been looking for this solution for hours. 😃

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