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
| Constructor | Modifiers | Description |
|---|---|---|
| (constructor)(props) | Constructs a new instance of the BaseNodeComponent class |
Properties
| Property | Modifiers | Type | Description |
|---|---|---|---|
| node | Node |
Methods
| Method | Modifiers | Description |
|---|---|---|
| removeNode() | Removes the node that this component represents. | |
| updateNode(data) | Updates the node that this component represents. |