Pagination
Facilitates navigation between pages.
Showing 0 - 10
Structure
API Reference
The root pagination component which contains all other pagination components.
Property | Type | Description |
---|---|---|
count required prop | number | The total number of items. Default: undefined |
perPage | number | The number of items per page. Default: 1 |
siblingCount | number | The number of page triggers to show on either side of the current page. Default: 1 |
page bindable prop | number | The selected page. You can bind this to a variable to control the selected page from outside the component. Default: undefined |
onPageChange | function | A function called when the selected page changes. Default: undefined |
loop | boolean | Whether or not the pagination should loop through the items when reaching the end. Default: false |
orientation | enum | The orientation of the pagination. Default: horizontal |
ref bindable prop | HTMLDivElement | The underlying DOM element being rendered. You can bind to this to get a reference to the element. Default: undefined |
children | Snippet | The children content to render. Default: undefined |
child | Snippet | Use render delegation to render your own element. See delegation docs for more information. Default: undefined |
A button that triggers a page change.
Property | Type | Description |
---|---|---|
page | PageItem | The page item this component represents. Default: undefined |
ref bindable prop | HTMLButtonElement | The underlying DOM element being rendered. You can bind to this to get a reference to the element. Default: undefined |
children | Snippet | The children content to render. Default: undefined |
child | Snippet | Use render delegation to render your own element. See delegation docs for more information. Default: undefined |
Data Attribute | Value | Description |
---|---|---|
data-selected | '' | Present on the current page element. |
data-pagination-page | '' | Present on the page trigger element. |
The previous button of the pagination.
Property | Type | Description |
---|---|---|
ref bindable prop | HTMLButtonElement | The underlying DOM element being rendered. You can bind to this to get a reference to the element. Default: undefined |
children | Snippet | The children content to render. Default: undefined |
child | Snippet | Use render delegation to render your own element. See delegation docs for more information. Default: undefined |
Data Attribute | Value | Description |
---|---|---|
data-pagination-prev-button | '' | Present on the previous button element. |
The next button of the pagination.
Property | Type | Description |
---|---|---|
ref bindable prop | HTMLButtonElement | The underlying DOM element being rendered. You can bind to this to get a reference to the element. Default: undefined |
children | Snippet | The children content to render. Default: undefined |
child | Snippet | Use render delegation to render your own element. See delegation docs for more information. Default: undefined |
Data Attribute | Value | Description |
---|---|---|
data-pagination-next-button | '' | Present on the next button element. |