This repository has been archived by the owner on Mar 31, 2024. It is now read-only.
forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[paginate] added pageSize control, and pushing new pageSize up to par…
…ent scope
- Loading branch information
Spencer Alger
committed
Nov 4, 2014
1 parent
943ee36
commit 616da84
Showing
7 changed files
with
115 additions
and
60 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
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
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
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,30 +1,33 @@ | ||
<ul class="pagination pagination-sm"> | ||
<li ng-class="{disabled: page.first}"> | ||
<a ng-click="paginate.goToPage(page.prev)">«</a> | ||
</li> | ||
<div class="pagination-other-pages"> | ||
<ul class="pagination-other-pages-list pagination-sm" ng-if="page.count > 1"> | ||
<li ng-class="{disabled: page.first}"> | ||
<a ng-click="paginate.goToPage(page.prev)">«</a> | ||
</li> | ||
|
||
<li ng-if="!otherPages.containsFirst"> | ||
<a ng-click="paginate.goToPage(1)">1...</a> | ||
</li> | ||
<li ng-if="!otherPages.containsFirst"> | ||
<a ng-click="paginate.goToPage(1)">1...</a> | ||
</li> | ||
|
||
<li | ||
ng-repeat="other in otherPages" | ||
ng-class="{ active: other.number === page.number }"> | ||
<a ng-click="paginate.goToPage(other)">{{other.number}}</a> | ||
</li> | ||
<li | ||
ng-repeat="other in otherPages" | ||
ng-class="{ active: other.number === page.number }"> | ||
<a ng-click="paginate.goToPage(other)">{{other.number}}</a> | ||
</li> | ||
|
||
<li ng-if="!otherPages.containsLast"> | ||
<a ng-click="paginate.goToPage(page.count)">...{{page.count}}</a> | ||
</li> | ||
<li ng-if="!otherPages.containsLast"> | ||
<a ng-click="paginate.goToPage(page.count)">...{{page.count}}</a> | ||
</li> | ||
|
||
<li ng-class="{disabled: page.last}"> | ||
<a ng-click="paginate.goToPage(page.next)">»</a> | ||
</li> | ||
</ul> | ||
<li ng-class="{disabled: page.last}"> | ||
<a ng-click="paginate.goToPage(page.next)">»</a> | ||
</li> | ||
</ul> | ||
</div> | ||
|
||
<form class="form-inline pagination-size"> | ||
<div class="form-group"> | ||
<label>Page Size</label> | ||
<input type="number" ng-model="paginate.perPage"> | ||
<select ng-model="paginate.perPage" ng-options="opt.value as opt.title for opt in paginate.sizeOptions"> | ||
</select> | ||
</div> | ||
</form> |
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