Skip to content

Pagination ​

This is a limit...offset implementation to handle pagination from the backend side. For pagination purposes the next query params will be appended in the request url:

/?limit=[rowsPerPage]&offset=[COMPUTED_OFFSET]

Inferring the [rowsPerPage] as the current pagination.rowsPerPage value, and the [COMPUTED_OFFSET] will be equal to (pagination.page - 1) * pagination.rowsPerPage

INFO

If you have the table.list.hotFetch as true, the table will trigger the fetchData every time the page or rowsPerPage property changes

vue
<script lang="ts" setup>
const table = useTable({
  // Other properties...

  pagination: {
    // Pagination properties...
  }
})
</script>

Page ​

NameDescriptiontypedefault
pageThe current page value for the tablenumber1

WARNING

If you have the table.list.hotFetch as true, the table will trigger the fetchData every time the page property changes.

Rows per page ​

NameDescriptiontypedefault
rowsPerPageThe number of rows to display in the tablenumber10

WARNING

If you have the table.list.hotFetch as true, the table will trigger the fetchData every time the rowsPerPage property changes.

Rows per page options ​

NameDescriptiontypedefault
rowsPerPageList of the available values to set in rowsPerPage valuenumber[10, 25, 50, 100]

Count ​

NameDescriptiontypedefault
countProperty to save the total count of the records in the backendnumber[10, 25, 50, 100]

Hidden ​

NameDescriptiontypedefault
hiddenHide the paginationnumber[10, 25, 50, 100]