Pagination
Paginering för tabeller, anpassad för @tanstack/react-table. Se exempel på användning under vår guide för Tanstack Table
API
| Name | Type | Default | Description |
|---|---|---|---|
pageSizeOptions | number[] | [10, 20, 30, 40, 50] | Options for different page sizes |
getCanNextPage * | () => boolean | - | Returns whether the table can go to the next page. API Docs Guide |
getCanPreviousPage * | () => boolean | - | Returns whether the table can go to the previous page. API Docs Guide |
getPageCount * | () => number | - | Returns the page count. If manually paginating or controlling the pagination state, this will come directly from the |
getRowCount * | () => number | - | Returns the row count. If manually paginating or controlling the pagination state, this will come directly from the |
nextPage * | () => void | - | Increments the page index by one, if possible. API Docs Guide |
previousPage * | () => void | - | Decrements the page index by one, if possible. API Docs Guide |
setPageIndex * | (updater: Updater<number>) => void | - | Updates the page index using the provided function or value in the |
setPageSize * | (updater: Updater<number>) => void | - | Updates the page size using the provided function or value in the |
pageIndex * | number | - | |
pageSize * | number | - |