Home > @i2analyze/notebook-sdk > commands > IActionArea > addGroup
commands.IActionArea.addGroup() method
Adds the specified group of actions to the user interface.
Signature:
addGroup<TCommandType extends CommandType = 'unscoped'>(group: IGroup<TCommandType>): IActionArea<undefined>;
Introduced: version 1.0
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 to add. |
Returns:
IActionArea<undefined>
An object that you can use to add actions or a further group to the new group.
Exceptions
Error if the group was not valid, or if a group with the same commands.GroupId was already present.