Constructordojo.dnd.move.boxConstrainedMoveable

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

an object, which makes a node moveable

Usage

function (/*Node*/ node, /*Object*/ params) (view source)
parametertypedescription
nodeNodea node (or node's id) to be moved
paramsObjectan optional object with additional parameters; following parameters are recognized: box: Object: a constraint box the rest is passed to the base class

Jump to PropertiesFunctionsBack to top

a function, which calculates a constraint box, it is called in a context of the moveable object.
Defined by dojo.dnd.Moveable
stops watching for possible move, deletes all references, so the object can be garbage-collected
called during the very first move notification, can be used to initialize coordinates, can be overwritten.
Defined by dojo.dnd.Moveable
event processor for onmousedown, creates a Mover for the node
Defined by dojo.dnd.Moveable
event processor for onmousemove, used only for delayed drags
Defined by dojo.dnd.Moveable
event processor for onmouseup, used only for delayed delayed drags
FunctiononMove(mover: dojo.dnd.Mover, leftTop: Object)
called during every move notification, should actually move the node, can be overwritten.
FunctiononMoved(mover: dojo.dnd.Mover, leftTop: Object)
Defined by dojo.dnd.Moveable
called after every incremental move, can be overwritten. default implementation does nothing
Defined by dojo.dnd.Moveable
called before every move operation
Defined by dojo.dnd.Moveable
called after every move operation
FunctiononMoving(mover: dojo.dnd.Mover, leftTop: Object)
Defined by dojo.dnd.Moveable
called before every incremental move, can be overwritten. default implementation does nothing
Defined by dojo.dnd.Moveable
event processor for onselectevent and ondragevent

Jump to FunctionsPropertiesBack to top

Defined by dojo.dnd.Moveable
delay move by this number of pixels
Defined by dojo.dnd.Moveable
a node (or node's id), which is used as a mouse handle if omitted, the node itself is used as a handle
Defined by dojo.dnd.Moveable
a constructor of custom Mover
Defined by dojo.dnd.Moveable
a node (or node's id) to be moved
Defined by dojo.dnd.Moveable
skip move of form elements
restrict move within boundaries. the rest is passed to the base class