In the p-table paginator, I want to disable the next button when a specific boolean is set to false.
Below is my p-table setup:
<p-table #dt id="{{id}}_table" [(value)]="_datasrc" [columns]="cols" [rows]="rowNumber || 10"
[paginator]="paginator" [pageLinks]="1" ...
To hide the button, you can use the following CSS code:
::ng-deep
.ui-paginator-next {
visibility: hidden;
}
If you only want this styling to be applied when the boolean is true, consider using ngClass within the p-table tag. Keep in mind that ngClass may not directly affect the paginator element.