Home > @jsplumbtoolkit/browser-ui > 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
Parameter | Type | Description |
---|---|---|
policy | string | One of Selection.DISCARD_EXISTING (which removes the 0th entry from the list before insertion of the new value) or Selection.DISCARD_NEW . |
Returns:
void