I use this code in my Angular5 application:
<mat-selection-list>
<mat-list-option *ngFor="let activityType of activityTypes" [selected]="isActivityTypeSelected(activityType)" (click)="addSelectedActivityType(activityType)">{{activityType | translate}}</mat-list-option>
</mat-selection-list>
and in some cases I will disable the mat-list-option. Therefore I tried it like this ([disabled]="closedCalendarEvent"):
<mat-list-option *ngFor="let activityType of activityTypes" [selected]="isActivityTypeSelected(activityType)" (click)="addSelectedActivityType(activityType)" [disabled]="closedCalendarEvent">{{activityType | translate}}</mat-list-option>
but it does not work, thd checkboxes are still clickable. Does anyone know what I can do in order to disable the checkboxes of mat-list-option?