Posted 22 August 2019, 10:02 am EST
i am trying implement paging and filtering.
I added below code
<div class="col-md-5">
<input number-input type="text" class="form-control" placeholder="0 or empty is for no paging." [(ngModel)]="cvPaging.pageSize" />
</div>
<div class="btn-group col-md-7" >
<button type="button" class="btn btn-default"
[disabled]="cvPaging.pageIndex <= 0"
(click)="cvPaging.moveToFirstPage()">
<!-- <span class="glyphicon glyphicon-fast-backward"></span> -->
</button>
<button type="button" class="btn btn-default"
[disabled]="cvPaging.pageIndex <= 0"
(click)="cvPaging.moveToPreviousPage()">
<span class="glyphicon glyphicon-step-backward"></span>
</button>
<!-- <div class="btn btn-default" disabled style="width:100px">
{{'cvPaging.pageIndex' + 1 | number}}
/ {{'cvPaging.pageCount' | number}}
</div> -->
<button type="button" class="btn btn-default"
[disabled]="cvPaging.pageIndex >= cvPaging.pageCount - 1"
(click)="cvPaging.moveToNextPage()">
<span class="glyphicon glyphicon-step-forward"></span>
</button>
<button type="button" class="btn btn-default"
[disabled]="cvPaging.pageIndex >= cvPaging.pageCount - 1"
(click)="cvPaging.moveToLastPage()">
<span class="glyphicon glyphicon-fast-forward"></span>
</button>
</div>
but its not working.UI rendering is failing because of below code
<div class="btn btn-default" disabled style="width:100px">
{{'cvPaging.pageIndex' + 1 | number}}
/ {{'cvPaging.pageCount' | number}}
</div>
could you please suggest on paging and filtering.
Thanks
Milind Soman