Skip to main content

Home > @jsplumbtoolkit/core > 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

ParameterTypeDescription
_maxNodesnumber

Returns:

void