I'am using Angular Material Paginator, This is the html code that I have for my mat paginator
<mat-paginator #paginator [pageSize]="6" [pageSizeOptions]="[5, 10, 20]" [showFirstLastButtons]="true">
</mat-paginator>
My paginator looks like this
The problem is that I have a huge data list to display so many pages for the paginator, I'am looking for a way to customize the paginator and adding an input to indicate the number of page that I want to show, is there any solution to code it ?
There is nothing built into the paginator to do that. But you can add a custom input and set the page number through code.
https://stackblitz.com/edit/mat-paginator-select-page?embed=1