Allow end-users to track a DOM node into the web page
| Parameter | Type | Description |
|---|---|---|
| params | Object | Hash of parameters |
| node | DOMNode | The draggable node |
See the dojox/mdnd/Moveable reference documentation for more information.
The user clicks on the handle, but the drag action will really begin if he tracks the main node to more than 3 pixels.
A flag to control a drag action if a form element has been focused. If true, the drag action is not executed.
Initialize the gap between main node coordinates and the clicked point. Call the onDragStart method.
| Parameter | Type | Description |
|---|---|---|
| e | DOMEvent | A DOM event |
identify the type of target node associated with a DOM event.
| Parameter | Type | Description |
|---|---|---|
| e | DOMEvent | a DOM event |
if true, the target is one of those specific nodes.
Stub function. Notes : border box model for size value, margin box model for coordinates
| Parameter | Type | Description |
|---|---|---|
| node | DOMNode | a DOM node |
| coords | Object | position of the main node (equals to css left/top properties) |
| size | Object | an object encapsulating width and height values |
| mousePosition | Object | coordiantes of mouse |
Stub function Notes : Coordinates don't contain margins
| Parameter | Type | Description |
|---|---|---|
| node | DOMNode | a DOM node |
Stub function. Notes : border box model
| Parameter | Type | Description |
|---|---|---|
| node | DOMNode | a DOM node |
| coords | Object | absolute position of the main node |
| size | Object | an object encapsulating width an height values |
Occurs when the user moves the mouse after clicking on the handle. Determinate when the drag action will have to begin (see dragDistance).
| Parameter | Type | Description |
|---|---|---|
| e | DOMEvent | A DOM event |
Occurs when the user clicks on the handle node. Skip the drag action if a specific node is targeted. Listens to mouseup and mousemove events on to the HTML document.
| Parameter | Type | Description |
|---|---|---|
| e | DOMEvent | a DOM event |
Occurs when the user releases the mouse Calls the onDragEnd method.
| Parameter | Type | Description |
|---|---|---|
| e | DOMEvent | a DOM event |
Occurs when the user moves the mouse. Calls the onDrag method.
| Parameter | Type | Description |
|---|---|---|
| e | DOMEvent | a DOM event |