【发布时间】:2017-11-14 17:50:02
【问题描述】:
我想禁用 primeNG 数据表 div 中的最后一页按钮。
分页器在p-datatable 标签中。
代码:
<div class="ui-g-12">
<p-dataTable [value]="bossDataTable" resizableColumns="true" columnResizeMode="expand" [lazy]="true" [rows]="15" [paginator]="true"
[totalRecords]="totalRecords" [rowsPerPageOptions]="[15,20,25,30,40,50]" (onLazyLoad)="getBossDataTable($event)" >
<!--some columns here -->
<p-footer><span><label i18n>Total:</label> {{totalRecords}}</span></p-footer>
</p-dataTable>
根据文档:
https://www.primefaces.org/primeng/#/paginator
我在这里得到了最后一页样式:
ui-paginator-last
如何禁用最后一页按钮?隐藏或禁用都可以。
现在分页器看起来像:
|< < 1 2 3 4 5 > >|
【问题讨论】:
-
请使用正确的标签。 Primefaces = jsf,primeng = 角度。所以你的问题与primefaces无关。
-
对不起先生,我编辑它。
标签: angular primeng primeng-datatable