ngx-datatable-footer 没有选择正确的当前页面

问题描述

我使用 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 页加载数据。

enter image description here

请问我的代码有什么问题?如何设置正确的索引? 谢谢

请帮忙。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...