- Index
- »
- fan.dom
- »
- DataTransfer
DataTransfer
@Js
class DataTransfer : Obj
The DataTransfer object is used to hold the data that is being dragged during a drag and drop operation.
The effect used for drop targets
The effects that are allowed for this drag
List of the format types of data, in the same order the data was added
Set data for given MIME type
List of local files available on the data transfer, or empty list if this drag operation doesn't involve dragging files
Set a custom image to be used for dragging, where x and y are offsets from the mouse cursor position
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
Str : dropEffect
The effect used for drop targets.
Str : effectAllowed
The effects that are allowed for this drag.
DomFile[] files()
List of local files available on the data transfer, or empty list if this drag operation doesn't involve dragging files.
Str getData(Str type)
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.
This setData(Str type, Str val)
Set data for given MIME type.
This setDragImage(Elem image, Int x, Int y)
Set a custom image to be used for dragging, where x and y are offsets from the mouse cursor position.
Str[] types()
List of the format types of data, in the same order the data was added.