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
parent
commit
646d11e997
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      ui-ngx/src/app/modules/home/components/attribute/attribute-table.component.html
  2. 3
      ui-ngx/src/app/modules/home/components/entity/entities-table.component.html
  3. 3
      ui-ngx/src/app/modules/home/components/widget/lib/alarms-table-widget.component.html
  4. 3
      ui-ngx/src/app/modules/home/components/widget/lib/entities-table-widget.component.html
  5. 3
      ui-ngx/src/app/modules/home/components/widget/lib/timeseries-table-widget.component.html

3
ui-ngx/src/app/modules/home/components/attribute/attribute-table.component.html

@ -195,7 +195,8 @@
[length]="dataSource.total() | async" [length]="dataSource.total() | async"
[pageIndex]="pageLink.page" [pageIndex]="pageLink.page"
[pageSize]="pageLink.pageSize" [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" <ngx-hm-carousel fxFlex *ngIf="mode === 'widget' && widgetsList.length > 0"
#carousel #carousel
[(ngModel)]="widgetsCarouselIndex" [(ngModel)]="widgetsCarouselIndex"

3
ui-ngx/src/app/modules/home/components/entity/entities-table.component.html

@ -238,7 +238,8 @@
[length]="dataSource.total() | async" [length]="dataSource.total() | async"
[pageIndex]="pageLink.page" [pageIndex]="pageLink.page"
[pageSize]="pageLink.pageSize" [pageSize]="pageLink.pageSize"
[pageSizeOptions]="pageSizeOptions"></mat-paginator> [pageSizeOptions]="pageSizeOptions"
showFirstLastButtons></mat-paginator>
</div> </div>
</div> </div>
</mat-drawer-content> </mat-drawer-content>

3
ui-ngx/src/app/modules/home/components/widget/lib/alarms-table-widget.component.html

@ -140,6 +140,7 @@
[length]="alarmsDatasource.total() | async" [length]="alarmsDatasource.total() | async"
[pageIndex]="pageLink.page" [pageIndex]="pageLink.page"
[pageSize]="pageLink.pageSize" [pageSize]="pageLink.pageSize"
[pageSizeOptions]="pageSizeOptions"></mat-paginator> [pageSizeOptions]="pageSizeOptions"
showFirstLastButtons></mat-paginator>
</div> </div>
</div> </div>

3
ui-ngx/src/app/modules/home/components/widget/lib/entities-table-widget.component.html

@ -99,6 +99,7 @@
[length]="entityDatasource.total() | async" [length]="entityDatasource.total() | async"
[pageIndex]="pageLink.page" [pageIndex]="pageLink.page"
[pageSize]="pageLink.pageSize" [pageSize]="pageLink.pageSize"
[pageSizeOptions]="pageSizeOptions"></mat-paginator> [pageSizeOptions]="pageSizeOptions"
showFirstLastButtons></mat-paginator>
</div> </div>
</div> </div>

3
ui-ngx/src/app/modules/home/components/widget/lib/timeseries-table-widget.component.html

@ -104,7 +104,8 @@
[length]="source.timeseriesDatasource.total() | async" [length]="source.timeseriesDatasource.total() | async"
[pageIndex]="source.pageLink.page" [pageIndex]="source.pageLink.page"
[pageSize]="source.pageLink.pageSize" [pageSize]="source.pageLink.pageSize"
[pageSizeOptions]="pageSizeOptions"></mat-paginator> [pageSizeOptions]="pageSizeOptions"
showFirstLastButtons></mat-paginator>
</mat-tab> </mat-tab>
</mat-tab-group> </mat-tab-group>
</div> </div>

Loading…
Cancel
Save