mat icon disable code example
Example: How to make mat-icon disabled in angular?
<button mat-icon-button [disabled]="payloadArray.enabled != 'true' " color="primary" >
<mat-icon color="warn" style="cursor: pointer;" >delete</mat-icon>
</button>
<button mat-icon-button [disabled]="payloadArray.enabled != 'true' " color="primary" >
<mat-icon color="warn" style="cursor: pointer;" >delete</mat-icon>
</button>