Home > @i2analyze/notebook-sdk > app > INodeGroupEditor > setImage
app.INodeGroupEditor.setImage() method
Sets or resets the image for the node group.
Signature:
setImage(href: string | undefined, description?: string): this;
Introduced: version 1.8
Parameters
| Parameter | Type | Description | 
|---|---|---|
| href | string | undefined | The URL of the image to use, or 'undefined' to indicate there is no image. | 
| description | string | (Optional) A description of the image. | 
Returns:
this
The node group, with its image set to the specified URL and description.
Remarks
If an image is not set, then a default image will be used when a label is also set.