问题描述
我使用 ngx-datatable-footer
<ngx-datatable-footer *ngIf="true">
<ng-template ngx-datatable-footer-template let-rowCount="rowCount" let-pageSize="pageSize"
let-selectedCount="selectedCount" let-curPage="curPage" let-offset="offset" let-limit="limit">
<div class="w-100 d-flex justify-content-center">
curpage: {{ curPage }} offset: {{ offset }} limit:{{ limit }}
<pagination [totalItems]="rowCount" [itemsPerPage]="pageSize" [maxSize]="totalPage"
prevIoUsText="<i class='simple-icon-arrow-left'></i>" (pageChanged)="pageChanged($event)"
nextText="<i class='simple-icon-arrow-right'></i>">
</pagination>
</div>
</ng-template>
</ngx-datatable-footer>
我用来自服务器的数据初始化我的表,得到第 1 页。 当我点击下一页(第 2 页)时,我从获取第 2 页的服务器加载数据并更新列表,但当前页面仍在 1 上。我无法点击 1 从第 1 页加载数据。
请问我的代码有什么问题?如何设置正确的索引? 谢谢
请帮忙。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)