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