forked from angular-ui/bootstrap
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(pagination): option for different mode when maxSize
* Allow user to specify if current page is rotated, moving the left/right limit, or page is moving between page groups.
- Loading branch information
Showing
5 changed files
with
132 additions
and
17 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,9 +1,17 @@ | ||
<div ng-controller="PaginationDemoCtrl"> | ||
<div ng-controller="PaginationDemoCtrl" class="well well-small"> | ||
<h4>Default</h4> | ||
|
||
<pagination num-pages="noOfPages" current-page="currentPage"></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 boundary-links="true" num-pages="noOfPages" current-page="currentPage" class="pagination-small" previous-text="‹" next-text="›" first-text="«" last-text="»"></pagination> | ||
<pagination direction-links="false" boundary-links="true" num-pages="noOfPages" current-page="currentPage"></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> | ||
|
||
<hr /> | ||
|
||
<h4>Limit the maximimum visible page-buttons</h4> | ||
<pagination num-pages="bigNoOfPages" current-page="bigCurrentPage" max-size="maxSize" class="pagination-mini" boundary-links="true"></pagination> | ||
<pagination rotate="false" num-pages="bigNoOfPages" current-page="bigCurrentPage" max-size="maxSize" class="pagination-mini" boundary-links="true"></pagination> | ||
</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
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,6 @@ | ||
|
||
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 and First / Last buttons (if exist) is maintained correctly. | ||
|
||
It also provides optional attribute max-size to limit the size of pagination bar. | ||
It also provides optional attribute max-size to limit the size of pagination bar & rotate attribute whether to keep current page in the middle of the visible ones. |
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
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