click here to view an image**I would like to know how I can disable only the selected/checked items on a p-listbox in Angular 8. Is it possible to achieve this by adding a specific property or using CSS? Currently, when I try to add the [disabled] property, all items in the list are disabled, but I want only the checked items to be disabled.
<div class="ui-g">
<div class="ui-g-12 ui-md-6 ui-lg-2">
<label>Fields</label>
</div>
<div class="ui-g-12 ui-md-6 ui-lg-6">
<p-listbox *ngIf="!datasetLoader" [options]="mandatoryField" [(ngModel)]="selectedField"
[listStyle]="{'max-height':'150px'}" (onChange)="fieldSelection($event)" multiple="multiple"
formControlName="field" checkbox="checkbox" optionLabel="DisplayFieldName">
</p-listbox>
</div>
</div>