0

I have an angular app in which i have primeNg dropdown like this

 <p-dropdown class="ml-4 mt-2" styleClass="p-zero" optionLabel="name" dataKey="name" placeholder="Select Matrix"
  [options]="partPricings" (onChange)="handleDropdownSelect($event)" [(ngModel)]="selectedPart">
</p-dropdown>

`component.ts'

this.partPricings = [
  {
     type: "part"
     default: false
     isInActive: false
     _id: "5e80a39db0f2323bb861006f"
     name: "Default Pricing"
     items: [{min: 0, max: 310, markup: 23}]
  },
        {
     type: "part"
     default: false
     isInActive: false
     _id: "5e80a39db0f2323bb861006g"
     name: "Test Matrix"
     items: []
  }
]

Now i want to disable some specific select item in dropdown. So how can i do this?

Fahad Hassan
  • 781
  • 10
  • 20

0 Answers0