Home > @jsplumbtoolkit/core > JsPlumbToolkit > getNodeType
JsPlumbToolkit.getNodeType() method
Gets the type of the Node represented by the given JS object. We first try for a return value from the current typeFunction, but if that returns nothing we just return 'default'.
Signature:
getNodeType(nodeData: ObjectData): string;
Parameters
| Parameter | Type | Description |
|---|---|---|
| nodeData | ObjectData | Node's data. Note: this is NOT a Node object, it is the backing data. You can use getType to get the type for some Toolkit object. |
Returns:
string
Either the object's type, or default.