Wanted to know if there is a way to customize the numbers displayed in the pagination UI. The reason is that if I haa a large number of pages, I would like to change the page number to have a "...". Today, the widget will put as many pages as there are set; so setting the number to 50 will have 50 pages shown.
问问题
12636 次
1 回答
6
假设我们正在讨论来自http://angular-ui.github.io/bootstrap/#/pagination的分页指令,您可以使用max-size
属性限制分页中显示的页面数:
<pagination num-pages="noOfPages" current-page="currentPage" max-size="maxSize"></pagination>
这是一个有效的 plunk:http ://plnkr.co/edit/MKev5wMtu3C5VMq83uFp?p=preview
于 2013-06-08T07:16:51.757 回答