Pagination
Buttons or a dropdown for navigating between pages.
Figma Link
- Web Components
- Flutter
Demo
zeta-web v0.12.9
Web Components
Storybook
https://design.zebra.com/web/storybook/?path=/docs/components-pagination--docs
Attributes
| Name | Description | Type | Default |
|---|---|---|---|
| totalPages | Total number of pages. | number | 10 |
| siblingCount | Number of pages on both sides of current active page. | number | 1 |
| currentPage | Current active page. | undefined | undefined |
Inherited Attributes
| Name | Description | Type | Default | Inherited From |
|---|---|---|---|---|
| rounded | Whether the component is rounded or sharp.When true, rounded will set the border radius of the first child, and any children with class 'contourable-target' to --radius-minimal.Otherwise, this value will be --radius-none. | boolean | undefined | true | Contourable |
Demo
Widgetbook
Inheritance
Object > DiagnosticableTree > Widget > StatefulWidget > ZetaStatefulWidget
Constructors
Creates a new ZetaPagination
ZetaPagination.new({bool? rounded, Key? key, required int pages, ZetaPaginationType? type, void onChange(int value)?, int currentPage = 1, String? semanticFirst, String? semanticPrevious, String? semanticNext, String? semanticLast, String? semanticDropdown})
Properties
| Name | Description | Type | Features |
|---|---|---|---|
| currentPage | The current page. | int | final |
| hashCode | The hash code for this object. | int | no setter inherited |
| key | Controls how one widget replaces another widget in the tree. | Key? | final inherited |
| onChange | A callback executed every time the page changes. | void Function(int value)? | final |
| pages | The number of pages. | int | final |
| rounded | Sets rounded or sharp border of the containing box and the icon style. | bool? | final inherited |
| runtimeType | A representation of the runtime type of the object. | Type | no setter inherited |
| semanticDropdown | Semantic value passed to the dropdown. | String? | final |
| semanticFirst | Semantic value passed to the first button. | String? | final |
| semanticLast | Semantic value passed to the last button. | String? | final |
| semanticNext | Semantic value passed to the next button. | String? | final |
| semanticPrevious | Semantic value passed to the previous button. | String? | final |
| type | The type of the pagination. | ZetaPaginationType? | final |