Browse Source
Merge pull request #4037 from Terny22/paginator-new-buttons
Added First/Last page-buttons to the tables-paginator
pull/4062/head
Igor Kulikov
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with
10 additions and
5 deletions
-
ui-ngx/src/app/modules/home/components/attribute/attribute-table.component.html
-
ui-ngx/src/app/modules/home/components/entity/entities-table.component.html
-
ui-ngx/src/app/modules/home/components/widget/lib/alarms-table-widget.component.html
-
ui-ngx/src/app/modules/home/components/widget/lib/entities-table-widget.component.html
-
ui-ngx/src/app/modules/home/components/widget/lib/timeseries-table-widget.component.html
|
|
|
@ -195,7 +195,8 @@ |
|
|
|
[length]="dataSource.total() | async" |
|
|
|
[pageIndex]="pageLink.page" |
|
|
|
[pageSize]="pageLink.pageSize" |
|
|
|
[pageSizeOptions]="[10, 20, 30]"></mat-paginator> |
|
|
|
[pageSizeOptions]="[10, 20, 30]" |
|
|
|
showFirstLastButtons></mat-paginator> |
|
|
|
<ngx-hm-carousel fxFlex *ngIf="mode === 'widget' && widgetsList.length > 0" |
|
|
|
#carousel |
|
|
|
[(ngModel)]="widgetsCarouselIndex" |
|
|
|
|
|
|
|
@ -238,7 +238,8 @@ |
|
|
|
[length]="dataSource.total() | async" |
|
|
|
[pageIndex]="pageLink.page" |
|
|
|
[pageSize]="pageLink.pageSize" |
|
|
|
[pageSizeOptions]="pageSizeOptions"></mat-paginator> |
|
|
|
[pageSizeOptions]="pageSizeOptions" |
|
|
|
showFirstLastButtons></mat-paginator> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</mat-drawer-content> |
|
|
|
|
|
|
|
@ -140,6 +140,7 @@ |
|
|
|
[length]="alarmsDatasource.total() | async" |
|
|
|
[pageIndex]="pageLink.page" |
|
|
|
[pageSize]="pageLink.pageSize" |
|
|
|
[pageSizeOptions]="pageSizeOptions"></mat-paginator> |
|
|
|
[pageSizeOptions]="pageSizeOptions" |
|
|
|
showFirstLastButtons></mat-paginator> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
@ -99,6 +99,7 @@ |
|
|
|
[length]="entityDatasource.total() | async" |
|
|
|
[pageIndex]="pageLink.page" |
|
|
|
[pageSize]="pageLink.pageSize" |
|
|
|
[pageSizeOptions]="pageSizeOptions"></mat-paginator> |
|
|
|
[pageSizeOptions]="pageSizeOptions" |
|
|
|
showFirstLastButtons></mat-paginator> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
@ -104,7 +104,8 @@ |
|
|
|
[length]="source.timeseriesDatasource.total() | async" |
|
|
|
[pageIndex]="source.pageLink.page" |
|
|
|
[pageSize]="source.pageLink.pageSize" |
|
|
|
[pageSizeOptions]="pageSizeOptions"></mat-paginator> |
|
|
|
[pageSizeOptions]="pageSizeOptions" |
|
|
|
showFirstLastButtons></mat-paginator> |
|
|
|
</mat-tab> |
|
|
|
</mat-tab-group> |
|
|
|
</div> |
|
|
|
|