paging: show less pages in smaller screens
This commit is contained in:
parent
4ce80019e7
commit
1ee81c2181
|
@ -27,10 +27,10 @@ import {properties} from "../../../environments/environment";
|
|||
<li *ngIf=" currentPage +2 <= getTotalPages() "><a
|
||||
[queryParams]="routerHelper.createQueryParamsPaging(parameterNames,parameterValues,'page',(currentPage +2))"
|
||||
[routerLink]=baseUrl>{{(currentPage + 2) | number}}</a></li>
|
||||
<li *ngIf=" (currentPage -2 <= 0)&&(currentPage +3 <= getTotalPages()) "><a
|
||||
<li *ngIf=" (currentPage -2 <= 0)&&(currentPage +3 <= getTotalPages()) " class="uk-visible@l"><a
|
||||
[queryParams]="routerHelper.createQueryParamsPaging(parameterNames,parameterValues,'page',(currentPage +3))"
|
||||
[routerLink]=baseUrl>{{(currentPage + 3) | number}}</a></li>
|
||||
<li *ngIf=" (currentPage -1 <= 0)&&(currentPage +4 <= getTotalPages()) "><a
|
||||
<li *ngIf=" (currentPage -1 <= 0)&&(currentPage +4 <= getTotalPages()) " class="uk-visible@l"><a
|
||||
[queryParams]="routerHelper.createQueryParamsPaging(parameterNames,parameterValues,'page',(currentPage +4))"
|
||||
[routerLink]=baseUrl>{{(currentPage + 4) | number}}</a></li>
|
||||
<li [class.uk-invisible]="getTotalPages() <= currentPage">
|
||||
|
|
|
@ -18,8 +18,8 @@ import {properties} from "../../../environments/environment";
|
|||
<li class="uk-active"><span >{{currentPage | number}}</span></li>
|
||||
<li *ngIf=" currentPage +1 <= getTotalPages() "><a (click)="onPage((currentPage +1))">{{(currentPage +1) | number}}</a></li>
|
||||
<li *ngIf=" currentPage +2 <= getTotalPages() "><a (click)="onPage((currentPage +2))">{{(currentPage +2) | number}}</a></li>
|
||||
<li *ngIf=" (currentPage -2 <= 0)&&(currentPage +3 <= getTotalPages()) "><a (click)="onPage((currentPage +3))">{{(currentPage +3) | number}}</a></li>
|
||||
<li *ngIf=" (currentPage -1 <= 0)&&(currentPage +4 <= getTotalPages()) "><a (click)="onPage((currentPage +4))">{{(currentPage +4) | number}}</a></li>
|
||||
<li *ngIf=" (currentPage -2 <= 0)&&(currentPage +3 <= getTotalPages()) " class="uk-visible@l"><a (click)="onPage((currentPage +3))">{{(currentPage +3) | number}}</a></li>
|
||||
<li *ngIf=" (currentPage -1 <= 0)&&(currentPage +4 <= getTotalPages()) " class="uk-visible@l"><a (click)="onPage((currentPage +4))">{{(currentPage +4) | number}}</a></li>
|
||||
<li [class.uk-invisible]="getTotalPages() <= currentPage">
|
||||
<a (click)="onPage(currentPage +1)" aria-label="Next">
|
||||
<span class="uk-icon">
|
||||
|
|
Loading…
Reference in New Issue