class dom::DataTransfer

sys::Obj
  dom::DataTransfer

@Js

Source

The DataTransfer object is used to hold the data that is being dragged during a drag and drop operation.

dropEffect

Str dropEffect

Source

The effect used for drop targets.

effectAllowed

Str effectAllowed

Source

The effects that are allowed for this drag.

getData

Str getData(Str type)

Source

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

This setData(Str type, Str val)

Source

Set data for given MIME type.

setDragImage

This setDragImage(Elem image, Int x, Int y)

Source

Set a custom image to be used for dragging, where x and y are offsets from the mouse cursor position.

types

Str[] types()

Source

List of the format types of data, in the same order the data was added.