Skip to content

Recommend changing paginating display #10

Open
@tej-rana

Description

@tej-rana

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions