I am currently working with a PrimeNG grouped multi select component and I'm curious if there is a way to select all items within a group by simply clicking on the group itself?
Below is the code that I have implemented so far:
<p-multiSelect [options]="items" [group]="true" [(ngModel)]="selectedItems" optionLabel="name" optionValue="id" optionGroupLabel="label" optionGroupChildren="subItems" (onChange)="changed()"></p-multiSelect>
Upon implementation, this is what I see:
https://i.sstatic.net/mxsUj.png
However, my desired functionality would include having a checkbox next to "Germany" which when clicked, selects all cities within "Germany". Any suggestions on how to achieve this?