|
1 | 1 | <div class="mat-paginator-page-length-select"> |
2 | | - {{_intl.itemsPerPageLabel}} |
3 | | - <md-select [ngModel]="pageLength" |
4 | | - [attr.aria-label]="_intl.itemsPerPageLabel" |
| 2 | + <div class="mat-paginator-items-per-page-label"> |
| 3 | + {{_intl.itemsPerPageLabel}} |
| 4 | + </div> |
| 5 | + |
| 6 | + <md-select *ngIf="_displayedPageLengthOptions.length > 1" |
| 7 | + [ngModel]="pageLength" |
| 8 | + [aria-label]="_intl.itemsPerPageLabel" |
5 | 9 | (change)="_changePageLength($event.value)"> |
6 | | - <md-option *ngFor="let pageLengthOption of pageLengthOptions" [value]="pageLengthOption"> |
| 10 | + <md-option *ngFor="let pageLengthOption of _displayedPageLengthOptions" [value]="pageLengthOption"> |
7 | 11 | {{pageLengthOption}} |
8 | 12 | </md-option> |
9 | 13 | </md-select> |
| 14 | + |
| 15 | + <div *ngIf="_displayedPageLengthOptions.length <= 1">{{pageLength}}</div> |
10 | 16 | </div> |
11 | 17 |
|
12 | 18 | <div class="mat-paginator-range-label"> |
13 | 19 | {{_intl.getRangeLabel(currentPageIndex, pageLength, listLength)}} |
14 | 20 | </div> |
15 | 21 |
|
16 | 22 | <button md-icon-button |
17 | | - class="mat-paginator-increment-button" |
18 | | - (click)="incrementPage(-1)" |
19 | | - [attr.aria-label]="_intl.decrementLabel" |
20 | | - [mdTooltip]="_intl.decrementLabel" |
| 23 | + class="mat-paginator-navigation-button mat-paginator-navigation-previous" |
| 24 | + (click)="navigateToPreviousPage()" |
| 25 | + [attr.aria-label]="_intl.previousPageLabel" |
| 26 | + [mdTooltip]="_intl.previousPageLabel" |
21 | 27 | [mdTooltipPosition]="'above'" |
22 | | - [disabled]="!_canIncrementPage(-1)"> |
| 28 | + [disabled]="!canNavigateToPreviousPage(-1)"> |
23 | 29 | <div class="mat-paginator-increment"></div> |
24 | 30 | </button> |
25 | 31 | <button md-icon-button |
26 | | - class="mat-paginator-increment-button" |
27 | | - (click)="incrementPage(1)" |
28 | | - [attr.aria-label]="_intl.incrementLabel" |
29 | | - [mdTooltip]="_intl.incrementLabel" |
| 32 | + class="mat-paginator-navigation-button mat-paginator-navigation-next" |
| 33 | + (click)="navigateToNextPage()" |
| 34 | + [attr.aria-label]="_intl.nextPageLabel" |
| 35 | + [mdTooltip]="_intl.nextPageLabel" |
30 | 36 | [mdTooltipPosition]="'above'" |
31 | | - [disabled]="!_canIncrementPage(1)"> |
| 37 | + [disabled]="!canNavigateToNextPage(1)"> |
32 | 38 | <div class="mat-paginator-decrement"></div> |
33 | 39 | </button> |
0 commit comments