paginator/src/paginator/paginator.component.ts
Paginator component provides pagination control to navigate through a list of items.
Example :<!-- Basic usage -->
<talenra-paginator [state]="paginatorState" (stateChange)="onPaginatorStateChange($event)" />
<!-- With options -->
<talenra-paginator
[state]="paginatorState"
(stateChange)="onPaginatorStateChange($event)"
showMoveFirstLastButtons
disableItemsPerPageSelection />
| changeDetection | ChangeDetectionStrategy.OnPush |
| host | { |
| selector | talenra-paginator |
| imports |
ButtonComponent
OptionComponent
SelectComponent
ReactiveFormsModule
FormsModule
|
| templateUrl | ./paginator.component.html |
| styleUrl | ./paginator.component.scss |
Inputs |
Outputs |
| align |
Type : TPaginatorAlignment
|
Default value : PaginatorAlignment.Left
|
|
Alignment of the paginator. Paginator will take the full width (100%) of the container element. The |
| customMessages |
Type : IPaginatorMessages | undefined
|
Default value : undefined
|
|
Custom messages/translations will override default messages provided via localize. Use this feature if your app involves multiple instances of Paginator using different messages per instance. If all Paginator instances of your app share the same messages, you should provide/customize messages via localization instead. Note that custom messages can be translated using the |
| hideItemsPerPage |
Default value : false, { transform: booleanAttribute }
|
|
Determines whether the selection of items per page is hidden. Example : |
| showFirstLastButtons |
Default value : false, { transform: booleanAttribute }
|
|
Determines whether the buttons to move to first/last page are shown. Example : |
| state |
Type : PaginatorState
|
Default value : { currentPage: 1, itemsPerPage: ITEMS_PER_PAGE_DEFAULT, totalItems: 1, itemsPerPageOptions: ITEMS_PER_PAGE_OPTIONS_DEFAULT, }
|
|
The state of the paginator. Provides information about the current page, the number of items per page etc. Supports two-way binding. Example : |
| state |
Type : PaginatorState
|
|
The state of the paginator. Provides information about the current page, the number of items per page etc. Supports two-way binding. Example : |