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

    [SOLVED] How to use @row-click with scoped slots

    Help
    table
    1
    2
    205
    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.
    • W
      wpq last edited by wpq

      The documentation for @row-click states

      Emitted 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.

      1 Reply Last reply Reply Quote 0
      • W
        wpq last edited by

        I found it. The code is indeed what I used in my question, and the content of the row is in props.row

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