Constructordojo.dnd.Moveable

dojo.require("dojo.dnd.Moveable");
defined in dojo/dnd/Moveable.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:

Jump to PropertiesFunctionsBack to top

stops watching for possible move, deletes all references, so the object can be garbage-collected
FunctionmarkupFactory(params, node)
called during the very first move notification, can be used to initialize coordinates, can be overwritten. default implementation does nothing
event processor for onmousedown, creates a Mover for the node
event processor for onmousemove, used only for delayed drags
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)
called after every incremental move, can be overwritten. default implementation does nothing
called before every move operation
called after every move operation
FunctiononMoving(mover: dojo.dnd.Mover, leftTop: Object)
called before every incremental move, can be overwritten. default implementation does nothing
event processor for onselectevent and ondragevent

Jump to FunctionsPropertiesBack to top

delay move by this number of pixels
a node (or node's id), which is used as a mouse handle if omitted, the node itself is used as a handle
a constructor of custom Mover
a node (or node's id) to be moved
skip move of form elements