class DataTransfer
package js.html
The DataTransfer
object is used to hold the data that is being dragged during a drag and drop operation. It may hold one or more data items, each of one or more data types. For more information about drag and drop, see HTML Drag and Drop API.
Documentation DataTransfer by Mozilla Contributors, licensed under CC-BY-SA 2.5.
See:
Constructor
Variables
Gets the type of drag-and-drop operation currently selected or sets the operation to a new type. The value must be none
, copy
, link
or move
.
Provides all of the types of operations that are possible. Must be one of none
, copy
, copyLink
, copyMove
, link
, linkMove
, move
, all
or uninitialized
.
Contains a list of all the local files available on the data transfer. If the drag operation doesn't involve dragging files, this property is an empty list.
read onlytypes:DOMStringList
An array of DOMString
giving the formats that were set in the dragstart
event.