Home > @i2analyze/notebook-sdk > app > INodeEditor > setBorderWidth
app.INodeEditor.setBorderWidth() method
Sets or resets the border width of the node.
Signature:
setBorderWidth(width: number | undefined): this;
Introduced: version 1.9
Parameters
| Parameter | Type | Description |
|---|---|---|
| width | number | undefined | The width to set (valid range is 1 to 32), or undefined to reset the width to the theme default. |
Returns:
this
The node, with its border width set to the specified value.
Exceptions
Error if the specified value is neither undefined nor a number in the range 1 to 32.