i2 Notebook SDK
Search results for

    Show/hide table of contents

    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:

    IDynamicActionArea

    A scoped area for the contents of the new or existing group.

    In this article
    Back to top © N. Harris Computer Corporation