dojo/dnd/Manager

dojo/Evented

Summary

the manager of DnD operations (usually a singleton)

Usage

var foo = new Manager();

dojo/dnd/Manager

See the dojo/dnd/Manager reference documentation for more information.

Properties

OFFSET_X

Defined by: dojo/dnd/Manager

OFFSET_Y

Defined by: dojo/dnd/Manager

Methods

canDrop(flag)

Defined by dojo/dnd/Manager

called to notify if the current target can accept items

Parameter Type Description
flag undefined

emit(type,event)

Defined by dojo/Evented

Parameter Type Description
type undefined
event undefined

Returns: undefined

makeAvatar()

Defined by dojo/dnd/Manager

makes the avatar; it is separate to be overwritten dynamically, if needed

Returns: instance

manager()

Defined by dojo/dnd/Manager

Returns the current DnD manager. Creates one if it is not created yet.

Returns: instance

on(type,listener)

Defined by dojo/Evented

Parameter Type Description
type undefined
listener undefined

Returns: undefined

outSource(source)

Defined by dojo/dnd/Manager

called when a source detected a mouse-out condition

Parameter Type Description
source Object

the reporter

overSource(source)

Defined by dojo/dnd/Manager

called when a source detected a mouse-over condition

Parameter Type Description
source Object

the reporter

startDrag(source,nodes,copy)

Defined by dojo/dnd/Manager

called to initiate the DnD operation

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

stopDrag()

Defined by dojo/dnd/Manager

stop the DnD in progress

updateAvatar()

Defined by dojo/dnd/Manager

updates the avatar; it is separate to be overwritten dynamically, if needed

Events

onKeyDown(e)

Defined by: dojo/dnd/Manager

event processor for onkeydown: watching for CTRL for copy/move status, watching for ESCAPE to cancel the drag

Parameter Type Description
e Event

keyboard event

onKeyUp(e)

Defined by: dojo/dnd/Manager

event processor for onkeyup, watching for CTRL for copy/move status

Parameter Type Description
e Event

keyboard event

onMouseMove(e)

Defined by: dojo/dnd/Manager

event processor for onmousemove

Parameter Type Description
e Event

mouse event

onMouseUp(e)

Defined by: dojo/dnd/Manager

event processor for onmouseup

Parameter Type Description
e Event

mouse event

© 2005–2017 JS Foundation
Licensed under the AFL 2.1 and BSD 3-Clause licenses.
http://dojotoolkit.org/api/1.10/dojo/dnd/Manager.html