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 get next data with pagination in Quasar Framework?

    Help
    2
    2
    1404
    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.
    • Y
      yehezkieljosh last edited by

      I want to use datatable with server pagination in Quasar Framework, I already try the example, but I didn’t get it if my Rest API return this kind of JSON,

      {
      "count": 808,
      "next": "http://localhost:8000/v1/assets?expand=village.subdistrict.city.province&page=2",
      "previous": null,
      result: [
              { id: 1, name: 'Frozen Yogurt', calories: 159, fat: 6.0, carbs: 24, protein: 4.0, sodium: 87, calcium: '14%', iron: '1%' },
              { id: 2, name: 'Ice cream sandwich', calories: 237, fat: 9.0, carbs: 37, protein: 4.3, sodium: 129, calcium: '8%', iron: '1%' },
              { id: 3, name: 'Eclair', calories: 262, fat: 16.0, carbs: 23, protein: 6.0, sodium: 337, calcium: '6%', iron: '7%' },
              { id: 4, name: 'Cupcake', calories: 305, fat: 3.7, carbs: 67, protein: 4.3, sodium: 413, calcium: '3%', iron: '8%' },
      ]
      }
      

      I think the documentation doesn’t explain this case.
      How can I use ‘next’ and ‘previous’ to fetch the next or previous page ?

      dobbel 1 Reply Last reply Reply Quote 0
      • dobbel
        dobbel @yehezkieljosh last edited by

        @yehezkieljosh

        Here’s a example for q-table:
        https://quasar.dev/vue-components/table#Server-side-pagination%2C-filter-and-sorting

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