Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for pagination on the top, bottom, or both #184

Closed
wants to merge 1 commit into from

Conversation

anoek
Copy link

@anoek anoek commented Jan 25, 2014

Usage:

...

Usage:
<table ng-table=...  pagination-top pagination-bottom>
    ...
</table>
@esvit
Copy link
Owner

esvit commented Apr 12, 2014

Sorry, but your solution is not suitable. I add directive for pagination. Look this example: https://github.com/esvit/ng-table/blob/master/examples/demo28.html#L28

@esvit esvit closed this Apr 12, 2014
@celineotter
Copy link

Hi @esvit,

our api is capped at 50 entries per page. Can custom page count be added to the demo 28 ?

<li ng-class="{'disabled': !page.active}" ng-repeat="page in pages" ng-switch="page.type">
    ....
</li>
<li class="btn-group ">
    <button type="button" ng-class="{'active':params.count() == 10}" ng-click="params.count(10)" class="btn btn-default">10</button>
    <button type="button" ng-class="{'active':params.count() == 25}" ng-click="params.count(25)" class="btn btn-default">25</button>
    <button type="button" ng-class="{'active':params.count() == 50}" ng-click="params.count(50)" class="btn btn-default">50</button>
</li>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants