Commit 949d4db5260fceb5b2581a825a001b42ed5d9594
1 parent
84647a07
Added First/Last page-buttons to the tables-paginator
Showing
5 changed files
with
10 additions
and
5 deletions
@@ -195,7 +195,8 @@ | @@ -195,7 +195,8 @@ | ||
195 | [length]="dataSource.total() | async" | 195 | [length]="dataSource.total() | async" |
196 | [pageIndex]="pageLink.page" | 196 | [pageIndex]="pageLink.page" |
197 | [pageSize]="pageLink.pageSize" | 197 | [pageSize]="pageLink.pageSize" |
198 | - [pageSizeOptions]="[10, 20, 30]"></mat-paginator> | 198 | + [pageSizeOptions]="[10, 20, 30]" |
199 | + showFirstLastButtons></mat-paginator> | ||
199 | <ngx-hm-carousel fxFlex *ngIf="mode === 'widget' && widgetsList.length > 0" | 200 | <ngx-hm-carousel fxFlex *ngIf="mode === 'widget' && widgetsList.length > 0" |
200 | #carousel | 201 | #carousel |
201 | [(ngModel)]="widgetsCarouselIndex" | 202 | [(ngModel)]="widgetsCarouselIndex" |
@@ -238,7 +238,8 @@ | @@ -238,7 +238,8 @@ | ||
238 | [length]="dataSource.total() | async" | 238 | [length]="dataSource.total() | async" |
239 | [pageIndex]="pageLink.page" | 239 | [pageIndex]="pageLink.page" |
240 | [pageSize]="pageLink.pageSize" | 240 | [pageSize]="pageLink.pageSize" |
241 | - [pageSizeOptions]="pageSizeOptions"></mat-paginator> | 241 | + [pageSizeOptions]="pageSizeOptions" |
242 | + showFirstLastButtons></mat-paginator> | ||
242 | </div> | 243 | </div> |
243 | </div> | 244 | </div> |
244 | </mat-drawer-content> | 245 | </mat-drawer-content> |
@@ -140,6 +140,7 @@ | @@ -140,6 +140,7 @@ | ||
140 | [length]="alarmsDatasource.total() | async" | 140 | [length]="alarmsDatasource.total() | async" |
141 | [pageIndex]="pageLink.page" | 141 | [pageIndex]="pageLink.page" |
142 | [pageSize]="pageLink.pageSize" | 142 | [pageSize]="pageLink.pageSize" |
143 | - [pageSizeOptions]="pageSizeOptions"></mat-paginator> | 143 | + [pageSizeOptions]="pageSizeOptions" |
144 | + showFirstLastButtons></mat-paginator> | ||
144 | </div> | 145 | </div> |
145 | </div> | 146 | </div> |
@@ -99,6 +99,7 @@ | @@ -99,6 +99,7 @@ | ||
99 | [length]="entityDatasource.total() | async" | 99 | [length]="entityDatasource.total() | async" |
100 | [pageIndex]="pageLink.page" | 100 | [pageIndex]="pageLink.page" |
101 | [pageSize]="pageLink.pageSize" | 101 | [pageSize]="pageLink.pageSize" |
102 | - [pageSizeOptions]="pageSizeOptions"></mat-paginator> | 102 | + [pageSizeOptions]="pageSizeOptions" |
103 | + showFirstLastButtons></mat-paginator> | ||
103 | </div> | 104 | </div> |
104 | </div> | 105 | </div> |
@@ -104,7 +104,8 @@ | @@ -104,7 +104,8 @@ | ||
104 | [length]="source.timeseriesDatasource.total() | async" | 104 | [length]="source.timeseriesDatasource.total() | async" |
105 | [pageIndex]="source.pageLink.page" | 105 | [pageIndex]="source.pageLink.page" |
106 | [pageSize]="source.pageLink.pageSize" | 106 | [pageSize]="source.pageLink.pageSize" |
107 | - [pageSizeOptions]="pageSizeOptions"></mat-paginator> | 107 | + [pageSizeOptions]="pageSizeOptions" |
108 | + showFirstLastButtons></mat-paginator> | ||
108 | </mat-tab> | 109 | </mat-tab> |
109 | </mat-tab-group> | 110 | </mat-tab-group> |
110 | </div> | 111 | </div> |