Skip to main content

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

ParameterTypeDescription
fn(idx: number, n: Node) => anyFunction to call with each item.

Returns:

void