Home > @jsplumbtoolkit/browser-ui-react > BaseNodeComponent
#
BaseNodeComponent classBase 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>
#
ConstructorsConstructor | Modifiers | Description |
---|---|---|
(constructor)(props) | Constructs a new instance of the BaseNodeComponent class |
#
PropertiesProperty | Modifiers | Type | Description |
---|---|---|---|
node | Node |
#
MethodsMethod | Modifiers | Description |
---|---|---|
removeNode() | Removes the node that this component represents. | |
updateNode(data) | Updates the node that this component represents. |