Gets or sets the type of drag-and-drop operation currently selected. The value must be 'none', 'copy', 'link', or 'move'.
Gets or sets the types of operations that are possible. Must be one of 'none', 'copy', 'copyLink', 'copyMove', 'link', 'linkMove', 'move', 'all' or 'uninitialized'.
Gets an array of strings giving the formats that were set in the dragstart event.
Removes the data associated with a given type.
The type argument is optional. If the type is empty or not specified, the data associated with all types is removed. If data for the specified type does not exist, or the data transfer contains no data, this method will have no effect.
Type of data to remove.
Retrieves the data for a given type, or an empty string if data for that type does not exist or the data transfer contains no data.
Type of data to retrieve.
Set the data for a given type.
For a list of recommended drag types, please see https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Recommended_Drag_Types.
Type of data to add.
Data to add.
Set the image to be used for dragging if a custom one is desired.
An image element to use as the drag feedback image.
The horizontal offset within the image.
The vertical offset within the image.
Object used to hold the data that is being dragged during drag and drop operations.
It may hold one or more data items of different types. For more information about drag and drop operations and data transfer objects, see HTML Drag and Drop API.
This object is created automatically by the DragDropTouch singleton and is accessible through the {@link dataTransfer} property of all drag events.