Skip to main content

Home > @jsplumbtoolkit/core > JsPlumbToolkit > eachGroup

JsPlumbToolkit.eachGroup() method#

Iterates through all Groups in the Toolkit one at a time. You should not perform destructive editing of the dataset inside one of these loops.

Signature:

eachGroup(fn: (idx: number, group: Group) => void): void;

Parameters#

ParameterTypeDescription
fn(idx: number, group: Group) => voidA function that takes (index, node) as arguments and is applied for every Node in the Toolkit instance.

Returns:

void