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

    How to programmatically scrollTo a row in a QTable

    Framework
    1
    1
    67
    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.
    • O
      olaf last edited by olaf

      Hi,

      After adding an item to a table I want to jump to that row.
      I have tried to use the scrollTo method, like described in the QTableAPI, but I don’t get it working.

      I think it should work when you there is a table with a ref in the template like this:

      <q-table ref="table">
      

      Jumping to row 9 of a table from a script method must be done by this:

      this.$refs.table.scrollTo(9)
      

      But this does not work.

      I have made I codepen app to show my approach. https://codepen.io/olafxso/pen/gOpmvZJ

      Any idea’s what I am doing wrong?

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