如何在AngularJS中获取智能表的页面索引?

问题描述 投票:0回答:1

我有一个像智能表

<table st-table="displayedCollection" st-safe-src="FloorData" class="table table-striped">
    <thead>
    </thead>
    <tbody>
    </tbody>
    <tfoot>
     <tr>
      <td colspan="7" class="text-center">                                                                
       <div st-pagination="" st-items-by-page="10"></div>
      </td>
     </tr>
    </tfoot>
</table>

我需要在angular js文件中获取此表的当前页面索引。页面索引更改时如何进行某些操作?

angularjs smart-table
1个回答
0
投票

您可以绑定回调以订阅页面更改。

<div st-pagination st-page-change="onPageChange(newPage)"></div>
© www.soinside.com 2019 - 2024. All rights reserved.