问题描述
我使用 ngx 数据表
Transportation
我有这样的事情:
当我点击 2 时,我想在我的打字稿函数中获取当前索引 <ngx-datatable
#table
class="material"
[rows]="rows"
[columns]="columns"
[columnMode]="ColumnMode.flex"
[headerHeight]="20"
[sorts]="[{ prop: 'garaTransactionDate',dir: 'desc' }]"
[footerHeight]="100"
[externalPaging]="true"
[count]="totalItem"
[limit]="totalData"
[offset]="offSet" (page)="setPage($event)"
>
<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>"
nextText="<i class='simple-icon-arrow-right'></i>">
</pagination>
</div>
</ng-template>
</ngx-datatable-footer>
</ngx-datatable>
。
请问我该怎么办? 提前致谢。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)