我有一个像这样的angular
应用程序primeNg dropdown
<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: []
}
]
现在我想disable
在dropdown
. 那么我该怎么做呢?