-
-
Save navanathjadhav/b01536813f0df8ba9e03606636b6d7e9 to your computer and use it in GitHub Desktop.
5. Active class added for page buttons
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="d-flex justify-content-between align-items-center"> | |
<div class="records-count d-sm-block text-secondary"> | |
Showing {{ pager.startIndex + 1 }} to {{ pager.endIndex + 1 }} of | |
{{ totalRecordsCount }} entries | |
</div> | |
<nav class="pages"> | |
<ul class="pagination"> | |
<li [ngClass]="{ disabled: currentPageNumber === 1 }" class="page-item"> | |
<a href="javascript:;" class="page-link" (click)="prev()">Previous</a> | |
</li> | |
<li | |
[ngClass]="{ 'custom-disabled active': currentPageNumber === page }" | |
class="page-item" | |
*ngFor="let page of pager.pages; trackBy: trackByFn" | |
> | |
<a class="page-link" href="javascript:;" (click)="getData(page)">{{ | |
page | |
}}</a> | |
</li> | |
<li | |
[ngClass]="{ disabled: currentPageNumber + 1 > totalPages }" | |
class="page-item" | |
> | |
<a class="page-link" href="javascript:;" (click)="next()">Next</a> | |
</li> | |
</ul> | |
</nav> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment