Home > @jsplumbtoolkit/core > Selection > eachEdge
Selection.eachEdge() method
Iterates the Edges in the selection, calling the supplied callback for each item. The callback's signature should be function(index, item).
Signature:
eachEdge(fn: (idx: number, e: Edge) => any): void;
Parameters
| Parameter | Type | Description |
|---|---|---|
| fn | (idx: number, e: Edge) => any | Function to call with each item. |
Returns:
void