-
Notifications
You must be signed in to change notification settings - Fork 7
Paginator Specification Draft
Silvia Ivanova edited this page Sep 20, 2022
·
8 revisions
Team Name: Design and Web Development
Developer Name:
Designer Name:
- Peer Developer Name | Date:
- Design Manager Name | Date:
- Radoslav Mirchev| Date:
- Radoslav Karaivanov | Date:
| Version | Users | Date | Notes |
|---|---|---|---|
| 1 | Silvia Ivanova | 16-Sep-2022 | Initial Draft |
The igc-paginator component is used to divide a set of data into a number of similar pages.
The component enables the users to easily navigate through a range of pages. It should display a select with options for defining the number of items shown on each page along with buttons for changing the page.
- be able to set the number of visible items per page
- be notified when the number of visible items per page has changed
- be able to navigate through the pages
- be notified when the current page has changed
- be able to enable/disable or hide the select options
- be able to enable/disable or hide the navigation buttons
- be able to set the paginator size
- be able to customize the paginator giving different combinations of colors for background and foreground elements
- be able to see how many records are currently being displayed per page
- be able to select the number of visible items per page
- be able to see on which page I am currently at
- be able to see the total number of pages
- be able to navigate to the first/last page through icon buttons
- be able to navigate to the previous/next page through icon buttons
- be able to change the size of the component
- be able to define a custom content
The paginator component should display a select controlling the number of visible items per page along with buttons for navigating through the pages.
<igc-paginator perPage="5">
</igc-paginator>IgcPaginatorComponent
| Name | Description | Type | Default Value | Reflected |
|---|---|---|---|---|
| perPage | Set the number of visible items per page | number | 15 | false |
| totalRecords | Set the total records | number | false | |
| selectOptions ? | Sets custom options in the select of the paginator | string | false |
IgcPaginatorComponent
| Name | Description | Parameters |
|---|---|---|
| nextPage | Navigates to the next page if the paginator is not already at the last one | |
| previousPage | Navigates to the previous page if the paginator is not already at the first one | |
| paginate | Navigates to specific page index | index |
IgcPaginatorComponent
| Name | Description | Cancelable | Parameters |
|---|---|---|---|
| igcPageChange | Emitted when the current page has changed | false | |
| igcPerPageChange | Emitted when the value of the perPage property has changed |
false | |
| igcPaging | Emitted before paging is performed | true | |
| igcPagingDone | Emitted after paging is performed | false | |
| igcDensityChanged | Emitted when the size of the component has changed | false |
IgcPaginatorComponent
| Name | Description |
|---|---|
| (default) | Renders the paginator's content |
IgcPageSizeComponent
| Name | Description |
|---|---|
| (default) | Renders the page size content |
| label | Renders the page size label |
IgcPageNavComponent
| Name | Description |
|---|---|
| (default) | Renders the page navigation content |
| text | Renders the page navigation text |
IgcPaginatorContentComponent ???
IgcPaginatorComponent
| Name | Description |
|---|---|
| base | The base wrapper of the paginator |
IgcPageSizeComponent
| Name | Description |
|---|---|
| base | The base wrapper of the page size |
IgcPageNavComponent
| Name | Description |
|---|---|
| base | The base wrapper of the page navigation |
-
IgcPageNavComponent- role="navigation"
- Should initilize the component properly with default property values.
- Should initilize the component properly with passed property values.
- Should set the paginator visible records per page correctly.
- Should set the paginator total records correctly.
- Should set the paginator select options correctly.
- Should display custom content placed between the opening and closing tags of the paginator.
- Should navigate through the pages using navigation buttons.
- Should fire event when the current page has changed.
- Should fire event when the value of the
perPageproperty has changed. - Should fire event when the size of the component has changed.