API Reference
Platform docs

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

ParameterTypeDescription
argsConvertComboBoxGroupsToSelectableGroupsOptions

Returns:

{ groupedOptions: readonly ComboBoxSelectableItem[]; }

Join our community on Discord
Check out our public repositories on GitHub
Enjoy some video content on YouTube