Last active
July 9, 2020 20:36
-
-
Save NazemMahmud/e19681dd37914805a1cd77cb3709ba52 to your computer and use it in GitHub Desktop.
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
<mat-toolbar *ngIf=" length > 0"> | |
<span style="margin-left: 20%" class="responsive-view"> {{ 1 + (pageOffset * (pageIndex - 1)) }} | |
- {{ (pageOffset * pageIndex) <= length ? pageOffset * pageIndex : length }} | |
of {{ length }}</span> | |
<span style="margin-left: 20%" class="responsive-view margin-for-mobile"> | |
<button [disabled]="pageIndex <= 1" (click)="getFirstPage()"> | |
<i class="material-icons">first_page</i> | |
</button> | |
<button [disabled]="pageIndex <= 1" (click)="getPreviousPage()"> | |
<i class="material-icons">chevron_left</i> | |
</button> | |
<button [disabled]="this.pageOffset * this.pageIndex > length" (click)="getNextPage()"> | |
<i class="material-icons">chevron_right</i> | |
</button> | |
<button matTooltip="Info about the action" [disabled]="this.pageOffset * this.pageIndex > length" (click)="getLastPage()"> | |
<i class="material-icons">last_page</i> | |
</button> | |
</span> | |
</mat-toolbar> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment