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

    DataTable get values

    Help
    2
    4
    962
    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.
    • Shone
      Shone last edited by

      Hey guys, I need some help with DataTable.

      I have a problem with going from page with data table and comming back again, the datatable will go back to initial page (page one). I would like to save current page and have it stay like that, same with the search input.
      How could I get a value from search box, or pagination number (page 4 for example)?

      Thanks

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

        Data table with async backend data (data is loaded from backend on each time a the user navigates to a new datatable page) is coming in v0.15 which will be out this month

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

          Ok, that sounds good 🙂 What about current DataTable, is there a way to get value from search box?
          Thanks

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

            This gets you the data

            
            // add ref="table" to q-data-table element
            console.log(this.$refs.table.$data._pagination.page)
            console.log(this.$refs.table.$data.filtering.terms)
            
            
            1 Reply Last reply Reply Quote 0
            • First post
              Last post