The paginator component allows dividing large amounts of content into multiple pages.
Name | Default | Description |
---|---|---|
currentPage: number | 1 | Number of the current selected page. |
itemsPerPage: number | 5 | Number of items per page. |
itemsPerPageOptions: number[] | [] | An array of numbers representing the items per page options. If undefined, the select with items per page options will not be displayed. |
itemsPerPageFunction: function | This function will be called when the user selects an item per page option. | |
totalItems: number | 1 | Total number of items in the pages. |
showGoToPage: boolean | false | If true, a select will be displayed with the page numbers to move through them |
onPageChange: function | This function will be called when the user clicks on any of the button to change pages. The page number will be passed as a parameter to this function. | |
tabIndex: number | 0 | Value of the tabindex. |