Home > @uniformdev/design-system > convertComboBoxGroupsToSelectableGroups
convertComboBoxGroupsToSelectableGroups() function
Converts combo box options that can contain optgroups Into a set of group-less options where the optgroup becomes a selectable option, and selecting it selects all of its children.
Signature:
Parameters
Parameter | Type | Description |
---|---|---|
args | ConvertComboBoxGroupsToSelectableGroupsOptions |
Returns:
{ groupedOptions: readonly ComboBoxSelectableItem[]; }