Allow communication between Dojo dnd items and DojoX D&D areas
size by default of dropIndicator (display only into a D&D Area)
Get a D&D dojoX area as a DOM node positioned under a specific point.
Parameter | Type | Description |
---|---|---|
coords | Object | Object containing the coordinates x and y (mouse position) |
Function executed in onDndSource function to set the avatar acceptance according to the dojox DnD AreaManager Acceptance. It is used when The mouse exit a source/target dojo or if the dragged node is not accepted in dojo source / target.
Check if a dragNode is accepted into a dojo target.
Parameter | Type | Description |
---|---|---|
node | Node | The dragged node. |
accept | Object | Object containing the type accepted for a target dojo. |
true if the dragged node is accepted in the target dojo.
Subscribe to somes topics of dojo drag and drop.
Unsubscribe to some topics of dojo drag and drop.
Called when the mouse enters or exits of a source dojo.
Parameter | Type | Description |
---|---|---|
source | Object | the dojo source/target |
Occurs when the user drages an DOJO dnd item inside a D&D dojoX area.
Occurs when the user leaves a D&D dojoX area after dragging an DOJO dnd item over it.
Occurs when the "/dnd/start" topic is published.
Parameter | Type | Description |
---|---|---|
source | Object | the source which provides items |
nodes | Array | the list of transferred items |
copy | Boolean | copy items, if true, move items otherwise |
Occurs when the user leaves a D&D dojox area after dragging an DOJO dnd item over it.
Parameter | Type | Description |
---|---|---|
source | Object | the source which provides items |
nodes | Array | the list of transferred items |
copy | Boolean | copy items, if true, move items otherwise |
Occurs when the "/dnd/cancel" topic is published.
Occurs when the user moves the mouse.
Parameter | Type | Description |
---|---|---|
e | DOMEvent | the DOM event |