Open
Description
I recommend removing the buttons instead of making the not clickable (but you can't really disable anchor tags or list item). You could have pointer to cancel events on the disabled class but removing them would probably be cleaner.
<li *ngIf="pager.currentPage > 1"> <a (click)="setPage(1)">First</a> </li> <li *ngIf="pager.currentPage > 1"> <a (click)="setPage(pager.currentPage - 1)">Previous</a> </li> <li *ngFor="let page of pager.pages" [ngClass]="{active:pager.currentPage === page}"> <a (click)="setPage(page)">{{page}}</a> </li> <li *ngIf="pager.currentPage < pager.totalPages"> <a (click)="setPage(pager.currentPage + 1)">Next</a> </li> <li *ngIf="pager.currentPage < pager.totalPages"> <a (click)="setPage(pager.totalPages)">Last</a> </li>
Metadata
Metadata
Assignees
Labels
No labels