【发布时间】:2018-10-08 03:48:15
【问题描述】:
我正在为 [00:00,00:06,...] 的小时列表实现分页。我正在使用 NgxPaginationModule。我每页的项目将是固定的,但我希望有 [0h-2h,2h-4h,....],而不是页面的 [1,2,3,...]。
<div class=" pagination justify-content-center">
<pagination-controls
[id]="config2.id"
[maxSize]="maxSize2"
[directionLinks]="directionLinks2"
[autoHide]="autoHide2"
[previousLabel]="labels2.previousLabel | translate"
[nextLabel]="labels2.nextLabel | translate"
[screenReaderPaginationLabel]="labels2.screenReaderPaginationLabel"
[screenReaderPageLabel]="associatePagination6minPage(labels2.screenReaderPageLabel)"
[screenReaderCurrentLabel]="labels2.screenReaderCurrentLabel"
(pageChange)="pagination2.onPageChange($event)"></pagination-controls>
</div>
【问题讨论】:
-
你用
pagination-template尝试过他们的例子吗? github.com/michaelbromley/ngx-pagination
标签: angular pagination