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