Skip to main content

Home > @jsplumbtoolkit/browser-ui > Selection > setMaxGroups

Selection.setMaxGroups() method

Sets the maximum number of groups the selection can hold. The action taken when appending a group that would take the selection above its limit depends on the current capacityPolicy, which can be either Selection.DISCARD_EXISTING (the default) or Selection.DISCARD_NEW.

Signature:

setMaxGroups(_maxGroups: number): void;

Parameters

ParameterTypeDescription
_maxGroupsnumber

Returns:

void