Functiondojo.dnd.move.parentConstrainedMover

dojo.require("dojo.dnd.move");
defined in dojo/dnd/move.js

a specialization of dojo.dnd.constrainedMover, which constrains to the parent node

Usage

function (/*String*/ area, /*Boolean*/ within) (view source)
parametertypedescription
areaString"margin" to constrain within the parent's margin box, "border" for the border box, "padding" for the padding box, and "content" for the content box; "content" is the default value.
withinBooleanif true, constraints the whole dragged object withtin the rectangle, otherwise the constraint is applied to the left-top corner