Skip to main content

Home > @jsplumbtoolkit/core > Selection > setCapacityPolicy

Selection.setCapacityPolicy() method

Sets the action taken when appending an edge or node that would take the selection above its limit for that given type.

Signature:

setCapacityPolicy(policy: string): void;

Parameters

ParameterTypeDescription
policystringOne of Selection.DISCARD_EXISTING (which removes the 0th entry from the list before insertion of the new value) or Selection.DISCARD_NEW.

Returns:

void