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
Parameter | Type | Description |
---|---|---|
edge | ObjectData | Edge from which to retrieve id. |
Returns:
string
Edge's id, if we could resolve it, otherwise the object we were given.