Pagination - Web Component โ
The Pagination component can be used imported from:
Playground โ
Parameters โ
The Web component uses the <z-pagination>
tag:
By default, all the parameters are optional or can be set in different, except for the ones marked as required
The parametrization of the component can be done with the following custom HTML params:
Name | Type | Description | Slot | A11y |
---|---|---|---|---|
pages [required] | number | Total number of pages | ||
model | number | Current page number | ||
show-edges | boolean | Show first and last page buttons | ||
disabled | boolean | Blocks user interaction with the component |
Events โ
This component has events. Check the documentation about how to use the events.
Name | Payload | Description |
---|---|---|
change | number | Returns the new value of the "value" attribute |
restarted | void | Emitted on value reset |
Slots โ
This component has slots. Check the documentation about how to use the slots.
Name | Tags | Description |
---|
Parameters use โ
pages
โ
The pages
parameter is used to set the number of pages that the pagination will have.
model
โ
The value
parameter is used to set the current page of the pagination.
Flags โ
show-edges
โ
The show-edges
parameter is used to set the visibility of the first and last pages.
disabled
โ
The disabled
parameter is used to block the interaction with the component.
Browser support โ
Detected engine: ย
Chromium
Webkit
Gecko