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

    q-table: row selection by row-key?

    Help
    1
    2
    405
    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.
    • F
      Fancellu last edited by

      I note that q-table :selected.sync is an array of selected rows. Is there a simple way to select 1 or more rows simply based on row-key?

      e.g. selectedrows=[1,2,3]

      Thanks

      1 Reply Last reply Reply Quote 0
      • F
        Fancellu last edited by

        Ok, found a quick way, although I still wonder if there is a simpler way

        var row=myvue.requestdata.find(row => row.id === key);
        myvue.requestselected=[row];

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