Home > @i2analyze/notebook-sdk > commands > IDynamicActionArea > addOrGetGroup
commands.IDynamicActionArea.addOrGetGroup() method
Adds a new group, or returns the existing one if it was already added during this onPopulate call.
Signature:
addOrGetGroup<TCommandType extends CommandType = 'unscoped'>(group: IGroup<TCommandType>): IDynamicActionArea;
Introduced: version 1.10
Type Parameters
| Parameter | Type | Description |
|---|---|---|
| TCommandType | extends CommandType(default: 'unscoped') | The type of the command-context for the group, which determines what event API is passed to its {@link commands.IGroupConfigBase.onSurface}. |
Parameters
| Parameter | Type | Description |
|---|---|---|
| group | IGroup<TCommandType> | The group configuration. |
Returns:
A scoped area for the contents of the new or existing group.