Skip to content

Commit

Permalink
fix(pagination): temporary disabled pageBtnClass option
Browse files Browse the repository at this point in the history
  • Loading branch information
valorkin committed Oct 26, 2016
1 parent d7f6335 commit 49dd07f
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions components/pagination/pagination.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,36 +48,31 @@ const PAGINATION_TEMPLATE = `
<ul class="pagination" [ngClass]="classMap">
<li class="pagination-first page-item"
*ngIf="boundaryLinks"
[class.disabled]="noPrevious()||disabled"
class="{{ pageBtnClass }}">
[class.disabled]="noPrevious()||disabled">
<a class="page-link" href (click)="selectPage(1, $event)" [innerHTML]="getText('first')"></a>
</li>
<li class="pagination-prev page-item"
*ngIf="directionLinks"
[class.disabled]="noPrevious()||disabled"
class="{{ pageBtnClass }}">
[class.disabled]="noPrevious()||disabled">
<a class="page-link" href (click)="selectPage(page - 1, $event)" [innerHTML]="getText('previous')"></a>
</li>
<li *ngFor="let pg of pages"
[class.active]="pg.active"
[class.disabled]="disabled&&!pg.active"
class="pagination-page page-item"
class="{{ pageBtnClass }}">
class="pagination-page page-item">
<a class="page-link" href (click)="selectPage(pg.number, $event)" [innerHTML]="pg.text"></a>
</li>
<li class="pagination-next page-item"
*ngIf="directionLinks"
[class.disabled]="noNext()||disabled"
class="{{ pageBtnClass }}">
[class.disabled]="noNext()||disabled">
<a class="page-link" href (click)="selectPage(page + 1, $event)" [innerHTML]="getText('next')"></a></li>
<li class="pagination-last page-item"
*ngIf="boundaryLinks"
[class.disabled]="noNext()||disabled"
class="{{ pageBtnClass }}">
[class.disabled]="noNext()||disabled">
<a class="page-link" href (click)="selectPage(totalPages, $event)" [innerHTML]="getText('last')"></a></li>
</ul>
`;
Expand Down

0 comments on commit 49dd07f

Please sign in to comment.