- Index
- »
- dom
- »
- DataTransfer
type
DataTransfer
The DataTransfer object is used to hold the data that is being dragged during a drag and drop operation.
fields
dropEffect |
The effect used for drop targets. |
---|---|
effectAllowed |
The effects that are allowed for this drag. |
methods
files |
List of local files available on the data transfer, or empty list if this drag operation doesn't involve dragging files. |
---|---|
getData |
Get data for given MIME type, or an empty string if data for that type does not exist or the data transfer contains no data. |
setData |
Set data for given MIME type. |
setDragImage |
Set a custom image to be used for dragging, where |
types |
List of the format types of data, in the same order the data was added. |
Slot Details
dropEffect
Str dropEffect
The effect used for drop targets.
effectAllowed
Str effectAllowed
The effects that are allowed for this drag.
files
DomFile[] files()
List of local files available on the data transfer, or empty list if this drag operation doesn't involve dragging files.
getData
setData
setDragImage
types
Str[] types()
List of the format types of data, in the same order the data was added.