Constructordojo.dnd.move.constrainedMover

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

this function produces n object, which will put a constraint on the margin box of dragged object in absolute coordinates

Usage

function (/*Function*/ fun, /*Boolean*/ within) (view source)
parametertypedescription
funFunctioncalled on drag, and returns a constraint box
withinBooleanif true, constraints the whole dragged object withtin the rectangle, otherwise the constraint is applied to the left-top corner

PropertiesBack to top