我正在使用angular-xeditable来添加、更新和删除网格data.However,我还需要角度分页和排序functionalities.Any的想法,关于如何将这两者结合起来??
发布于 2015-09-28 21:47:08
添加以下css以进行分页:
<script src="http://angular-ui.github.io/bootstrap/ui-bootstrap-tpls-0.10.0.min.js"></script>在html中添加按钮后包括分页,如下所示:
<pagination class="nomargin pull-right"
total-items="totalItems"
items-per-page="itemsPerPage"
ng-model="currentPage"
ng-change="pageChanged()">
</pagination>你需要在你的控制器上做一些关于上面分页标记中的作用域的工作。
请访问以下站点:
http://plnkr.co/edit/APCMh0?p=preview
http://codepen.io/roktas/pen/AFEsh
https://stackoverflow.com/questions/31029591
复制相似问题