Skip to content

@fabwcie/free-drawing / utils/widgets / getWidgetGroups

Function: getWidgetGroups() ​

getWidgetGroups(groups, names): WidgetGroupOptions[]

Defined in: packages/free-drawing/src/utils/widgets.ts:25

Groups of widgets option with widgets of toolbar only (a widget in one group), groups without widgets ignored

Parameters ​

groups ​

WidgetGroupOptions[]

widgetGroups option

names ​

WidgetName[]

Widgets of toolbar

Returns ​

WidgetGroupOptions[]

copies of the groups with their valid widgets (a widget only in its first group)