Home > @jsplumbtoolkit/core > JsPlumbToolkit > getEdge
JsPlumbToolkit.getEdge() method
Gets an Edge by id, or if the given object is already an Edge, hands that back.
Signature:
getEdge(edgeId: string): Edge;
Parameters
Parameter | Type | Description |
---|---|---|
edgeId | string | ID of the Edge to retrieve. |
Returns:
The requested Edge, if found, otherwise null.