Skip to main content

Home > @jsplumbtoolkit/core > JsPlumbToolkit > getEdgeId

JsPlumbToolkit.getEdgeId() method#

Gets the id of the Edge represented by the given arguments. If this is a JS object, we extract the id using the current edgeIdFunction. Otherwise we just pass it back as-is.

Signature:

getEdgeId(edge: ObjectData): string;

Parameters#

ParameterTypeDescription
edgeObjectDataEdge from which to retrieve id.

Returns:

string

Edge's id, if we could resolve it, otherwise the object we were given.