Home > @jsplumbtoolkit/browser-ui-angular > BaseNodeComponent
BaseNodeComponent class
The base class for components that will be rendered as Nodes (or Groups). Your node/group components should extend this class.
Signature:
export declare abstract class BaseNodeComponent
Properties
| Property | Modifiers | Type | Description |
|---|---|---|---|
| _el | jsPlumbToolkitDOMElement | ||
| modelObject | Vertex | ||
| obj | ObjectData | Data object for the node | |
| surface | Surface | ||
| toolkit | JsPlumbToolkit |
Methods
| Method | Modifiers | Description |
|---|---|---|
| addNewPort(type, data) | Instructs the Toolkit to add a new port with the given data to the vertex this component represents. | |
| getNode() | Gets the node that this component represents. | |
| removeNode() | Shortcut method to remove the node (and therefore this whole component) | |
| updateNode(data) | Shortcut method to update the current data backing this node, for convenience. |