size in branch list

This commit is contained in:
saravanakumarkandasami 2018-10-11 11:01:35 +05:30
parent f82dd664e7
commit ab0d2e5cf8
2 changed files with 12 additions and 5 deletions

View File

@ -14,7 +14,7 @@
</div>
<div *ngIf="noRecordFound" class="nocontent ml-xs mr-xs" style="width: 90%;">No records found</div>
<div class="ml-xs mr-xs" style="width: 10%; text-align: right;">
<button mat-fab class="mr-1 mb-1" style="margin-top: 7px;" [color]="color" (click)="addBranch()" matTooltip="Add Branch" matTooltipPosition="above"><mat-icon>add</mat-icon></button>
<button mat-fab class="mr-1 mb-1 secondary" style="margin-top: 7px;" (click)="addBranch()" matTooltip="Add Branch" matTooltipPosition="above"><mat-icon>add</mat-icon></button>
</div>
</div>
@ -69,8 +69,10 @@
<mat-row *matRowDef="let row; columns: displayedColumns;">
</mat-row>
</mat-table>
<mat-paginator *ngIf="!noRecordFound" [pageSizeOptions]="[5, 10, 25, 50, 100]" showFirstLastButtons></mat-paginator>
<!--- <mat-paginator #paginator class="mat-elevation-z1" [length]="productList.length" [pageIndex]="pageIndex" [pageSize]="pageSize"
[pageSizeOptions]="[5, 10, 25, 100]" (page)="pageEvent = $event; pageChange($event)">
</mat-paginator>-->
<mat-paginator *ngIf="!noRecordFound" [pageSize]="pageSize" [pageSizeOptions]="[5, 10, 25, 50, 100]" showFirstLastButtons></mat-paginator>
</div>

View File

@ -31,6 +31,11 @@ export class BranchListComponent implements OnInit {
userdata2:any = [];
color = 'primary';
// pagination variable details
//length = 50;
//pageIndex = 0;
pageSize = 10;
// pageEvent: PageEvent;
// changed(id: number,isactive : number) {
// console.log('Id',id);
// console.log('Isactive',isactive)