Functiondojo.dnd.move.boxConstrainedMover

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

a specialization of dojo.dnd.constrainedMover, which constrains to the specified box

Usage

function (/*Object*/ box, /*Boolean*/ within) (view source)
parametertypedescription
boxObjecta constraint box (l, t, w, h)
withinBooleanif true, constraints the whole dragged object withtin the rectangle, otherwise the constraint is applied to the left-top corner