Home > @jsplumbtoolkit/core > JsPlumbToolkit > getNodeId
JsPlumbToolkit.getNodeId() method
Gets the id of the Node represented by the given arguments. If this is a JS object, we extract the id using the current idFunction. Otherwise we just pass it back as-is.
Signature:
getNodeId(node: ObjectData | string): string;
Parameters
Parameter | Type | Description |
---|---|---|
node | ObjectData | string | Object from which to retrieve id. |
Returns:
string