Skip to main content

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#

ParameterTypeDescription
nodeObjectData | stringObject from which to retrieve id.

Returns:

string