Home > @i2analyze/notebook-sdk > app > INodeEditor > setColor
app.INodeEditor.setColor() method
Sets or resets the color of the element.
Signature:
setColor(color: string | undefined | null): this;
Introduced: version 1.2
Parameters
| Parameter | Type | Description | 
|---|---|---|
| color | string | undefined | null | The color to set, or undefined to reset the color to the theme default, or 'null' to remove the color. | 
Returns:
this
The element, with its 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.