Looking to customize the pagination layout, I have managed to style most elements except for replacing the first and last icons with text. Here is the current setup:
https://i.stack.imgur.com/ZneZs.png
I want it to look something like this:
https://i.stack.imgur.com/0tUEl.png
HTML
<mat-paginator style-paginator showFirstLastButtons [showTotalPages]="3" [refreshButtons]="dataSource.data.length" [length]="dataSource.data.length" [pageSizeOptions]="[15, 30, 45, 60]">
</mat-paginator>
style-page-directive.ts (Imported in module)
(Angular code provided)
CSS
Tried modifying CSS but didn't work as intended:
::ng-deep .mat-paginator-navigation-first .mat-paginator-icon {
display: none;
}
::ng-deep .mat-paginator-navigation-first {
content: "TEST" !important;
}