Skip to main content

Home > @jsplumbtoolkit/browser-ui > ViewGroupOptions > constrain

ViewGroupOptions.constrain property

False by default - nodes/groups may be dragged outside of the bounds of the group. When you do drag a node/group outside of the bounds of its parent, what happens next depends on the other flags you have set and where you have dropped it. orphan:true, for instance, will cause the node/group to be removed from its parent group. revert will reinstate the node/group's position inside its parent, unless it was dropped on another group.

Signature:

constrain?: boolean;