p-dropdown "optionGroupLabel" name get

UI Components for Angular
Post Reply
rauf.ashraf
Posts: 2
Joined: 28 Jul 2021, 13:34

28 Jul 2021, 13:45

Hi,

How we get selected option of "optionGroupLabel" name on change event in typescript file?

Code:
onChangeGroupdropDown(event:any){
let SelectedItemGroupName=event.originalEvent.srcElement.optionGroupLabel;
}
Also how we get properties of p-dropdown ? optionGroupLabel,optionGroupChildren

Thanks

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 11 guests