Provides easy access to all drag drop components that are registered on a page. Items can be retrieved either directly by DOM node id, or by passing in the drag drop event that occurred and looking up the event target.
Returns the handle registered for a DOM Node by id
Returns the handle registered for a DOM Node by id
The DOM node or id to look up
handle The custom handle data
Returns the handle that is registered for the DOM node that is the target of the event
Returns the handle that is registered for the DOM node that is the target of the event
The event
handle The custom handle data
Returns a custom data object that is registered for a DOM node by id
Returns a custom data object that is registered for a DOM node by id
The DOM node or id to look up
data The custom data
Returns a custom data object that is registered for the DOM node that is the target of the event
Returns a custom data object that is registered for the DOM node that is the target of the event
The event
data The custom data
Resgister a drag drop element
Resgister a drag drop element
The id or DOM node to register
(optional) An custom data object that will be passed between the elements that are involved in drag drop operations. You can populate this object with any arbitrary properties that your own code knows how to interpret, plus there are some specific properties known to the Registry that should be populated in the data object (if applicable):
Value Description
--------- ------------------------------------------
handles Array of DOM nodes that trigger dragging
for the element being registered
isHandle True if the element passed in triggers
dragging itself, else false