Home > @jsplumbtoolkit/browser-ui > 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
Parameter | Type | Description |
---|---|---|
fn | (idx: number, g: Group) => any | Function to call with each item. |
Returns:
void