Reputation: 99
I am using this angularjs datagrid .I am facing problem with pagination, this grid shows all pages in pagination for example if i have 500 record and i want to show 10 record per page it will create pagination 1 to 50 but i want like this way First«1 2 3 4 5 6 7 8 9.... » Last .That means according to records the pagination will be shown if the records are too large then the pagination should display with dots(.....).Can anybody give me any hint showing where to change to obtain the above feature ?
Upvotes: 1
Views: 815
Reputation: 4849
Your example uses an angular-ui bootstrap directive for pagination. See all available settings for pagination. Set the max-size attribute to your desired number of visible buttons and you are good to go.
<pagination total-items="bigTotalItems" ng-model="bigCurrentPage" max-size="maxSize" class="pagination-sm" boundary-links="true" rotate="false" num-pages="numPages"></pagination>
Upvotes: 2