Skip to main content

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

PropertyModifiersTypeDescription
_eljsPlumbToolkitDOMElement
modelObjectVertex
objObjectDataData object for the node
surfaceSurface
toolkitJsPlumbToolkit

Methods

MethodModifiersDescription
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.