Skip to main content

Home > @jsplumbtoolkit/core > Selection > eachGroup

Selection.eachGroup() method

Iterates the Groups in the selection, calling the supplied callback for each item. The callback's signature should be function(index, item).

Signature:

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

Parameters

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

Returns:

void