Constructordojo.dnd.Mover

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

an object, which makes a node follow the mouse, used as a default mover, and as a base class for custom movers

Usage

function (/*Node*/ node, e, /*Object?*/ host) (view source)
parametertypedescription
nodeNodea node (or node's id) to be moved
e a mouse event, which started the move; only pageX and pageY properties are used
hostObjectOptional. object which implements the functionality of the move, and defines proper events (onMoveStart and onMoveStop)

Jump to PropertiesFunctionsBack to top

stops the move, deletes all references, so the object can be garbage-collected
makes the node absolute; it is meant to be called only once
event processor for onmousemove

Jump to FunctionsPropertiesBack to top

object which implements the functionality of the move, and defines proper events (onMoveStart and onMoveStop)
a node (or node's id) to be moved