【发布时间】:2021-11-01 14:51:27
【问题描述】:
我有一个角度数据表,我想制作一个自定义分页,可以像图片中所示那样跳转到最后一页。
这是我的页脚的样子
<ngx-datatable-footer>
<ng-template ngx-datatable-footer-template
let-curPage="curPage"
let-offset="offset"
let-pageSize="pageSize"
let-rowCount="rowCount"
let-selectedCount="selectedCount">
<div class="d-flex justify-content-center">
<pagination-controls
itemsPerPage="pageSize"
currentPage="curPage"
totalItems="rowCount"
directionLinks="true"
previousLabel=""
nextLabel=""
(pageChange)="onPage($event)">
</pagination-controls>
</div>
</ng-template>
</ngx-datatable-footer>
我做错了什么?还是有另一种方法可以像图片所示那样进行分页?谢谢
我的参考here
【问题讨论】:
标签: angular web pagination