p-dropdown(primeng) optionDisabled property is not working such unbale to disable the dropdown...

Discussão em 'Angular' iniciado por user9014, Dezembro 17, 2024.

  1. user9014

    user9014 Guest

    <p-dropdown [options]="cities"
    [(ngModel)]="selectedCity"
    optionLabel="label"
    optionDisabled="IsActive"></p-dropdown>


    this.cities = [
    { label: 'India', value: 'IND', IsActive: false },
    { label: 'Rome', value: 'RM', IsActive: true },
    { label: 'London', value: 'LDN', IsActive: false },
    { label: 'Istanbul', value: 'IST', IsActive: true },
    { label: 'Paris', value: 'PRS', IsActive: false },
    ];


    I want IsActive false options to be seen grayout but optionDisabled is not setting it. Is there any property or code I missed ??

    Continue reading...

Compartilhe esta Página