API Reference
Platform docs
Theme

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[]; }

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