Home > @jsplumbtoolkit/browser-ui > Selection > setMaxNodes
Selection.setMaxNodes() method
Sets the maximum number of nodes the selection can hold. The action taken when appending a node 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:
setMaxNodes(_maxNodes: number): void;
Parameters
Parameter | Type | Description |
---|---|---|
_maxNodes | number |
Returns:
void