This repository has been archived by the owner on May 29, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(pagination): add first/last link & constant congif options
Closes #120
- Loading branch information
1 parent
29930ef
commit 0ff0454
Showing
5 changed files
with
358 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
<div ng-controller="PaginationDemoCtrl"> | ||
<pagination num-pages="noOfPages" current-page="currentPage"></pagination> | ||
<pagination num-pages="noOfPages" current-page="currentPage" class="pagination-small"></pagination> | ||
<pagination num-pages="noOfPages" current-page="currentPage" class="pagination-mini"></pagination> | ||
<pagination num-pages="noOfPages" current-page="currentPage" class="pagination-small" previous-text="«" next-text="»"></pagination> | ||
<pagination boundary-links="true" num-pages="noOfPages" current-page="currentPage" max-size="maxSize"></pagination> | ||
<pagination num-pages="noOfPages" current-page="currentPage" max-size="maxSize"></pagination> | ||
<pagination direction-links="false" num-pages="noOfPages" current-page="currentPage"></pagination> | ||
<button class="btn" ng-click="setPage(3)">Set current page to: 3</button> | ||
The selected page no: {{currentPage}} | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
A lightweight pagination directive that is focused on ... providing pagination! | ||
|
||
It will take care of visualising a pagination bar. Additionally it will make sure that the state (enabled / disabled) of the Previous / Next buttons is maintained correctly. | ||
It will take care of visualising a pagination bar. Additionally it will make sure that the state (enabled / disabled) of the Previous / Next and First / Last buttons (if exist) is maintained correctly. | ||
|
||
It also provides optional attribute max-size to limit the size of pagination bar. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.