ngx-datatable 无法在函数中获取当前索引

问题描述

我使用 ngx 数据表

Transportation

我有这样的事情:

enter image description here

当我点击 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 (将#修改为@)

相关问答

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