i2 Notebook SDK
Search results for

    Show/hide table of contents

    Home > @i2analyze/notebook-sdk > app > INodeGroupEditor > setColor

    app.INodeGroupEditor.setColor() method

    Sets or resets the background color of the node group.

    Signature:

    setColor(color: string | undefined | null): this;
    

    Introduced: version 1.8

    Parameters

    Parameter Type Description
    color string | undefined | null The color to set, or null to remove the background, or undefined to reset the background color to the theme default.

    Returns:

    this

    The node group, with its background color set to the specified value.

    Exceptions

    Error if the specified value is not in a form that CSS supports, such as a hexadecimal number, an rgb() value, or a color name, or null or undefined.

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