import { Pagination } from "@wfp/react"; () => { return ( <Pagination pageSizes={[5, 20]} totalItems={30} /> ); };
string
The description for the backward icon.
The CSS class names.
(min: number,max: number,total: number) => string
The function returning a translatable text showing where the current page is, in a manner of the range of items.
The description for the forward icon.
string |number
The unique ID of this component instance.
The translatable text indicating the number of items per page.
A variant of itemsPerPageText, with a sign indicating that the number follows, e.g. ':'.
itemsPerPageText
(min: number,max: number) => string
A variant of itemRangeText, used if the total number of items is unknown.
itemRangeText
(params: { page: number; pageSize: number; }) => void
The callback function called when the current page changes.
(current: number,total: number) => string
A function returning PII showing where the current page is.
(page: number) => string
The translatable text showing the current page.
number[]
The choices for pageSize.
pageSize
boolean
true if ture the pageSizes should be not visible.
true
number
The total number of items.
true if the backward/forward buttons should be disabled.
The current page.
The number dictating how many items a page contains.
true if the total number of items is unknown.
true if the current page should be the last page.
true if the select box to change the page should be disabled.