Skip to main content

Home > @jsplumbtoolkit/browser-ui-react > BaseNodeComponent

BaseNodeComponent class

Base component that your node components can extend, to get access to a few helper methods. It is not imperative that you extend this component.

Signature:

export declare class BaseNodeComponent<P extends PropsWithContext, S> extends BaseVertexComponent<P, S> 

Extends: BaseVertexComponent<P, S>

Constructors

ConstructorModifiersDescription
(constructor)(props)Constructs a new instance of the BaseNodeComponent class

Properties

PropertyModifiersTypeDescription
nodeNode

Methods

MethodModifiersDescription
removeNode()Removes the node that this component represents.
updateNode(data)Updates the node that this component represents.