@kanunilabs/datagrid-react / GridPagerProps
Interface: GridPagerProps
Properties
labels?
optionallabels?:Partial<Record<"first"|"previous"|"next"|"last"|"page"|"of"|"rowsPerPage",string>>
onNext
onNext: () =>
void
RELATIVE moves go through their own callbacks so they read the controller's
current page instead of this component's prop: two clicks landing in the
same React commit would otherwise both compute page + 1 from the same
stale value and advance only one page.
Returns
void
onPage
onPage: (
page) =>void
Absolute jump (first/last).
Parameters
page
number
Returns
void
onPageSize
onPageSize: (
size) =>void
Parameters
size
number
Returns
void
onPrevious
onPrevious: () =>
void
Returns
void
page
page:
number
pageCount
pageCount:
number
pageSize
pageSize:
number
pageSizes?
optionalpageSizes?:number[]
totalRows
totalRows:
number
Rows after filtering (the thing being paged through).