Try Install Learn Blog API Packages GitHub
Pages
core

Search
Entities

Html.DataTransfer

Functions

clearData
(
data
:
Html.DataTransfer
)
:
Html.DataTransfer

Removes the attached data.

getData
(
data
:
Html.DataTransfer
format
:
String
)
:
String

Returns string data for the given format or an empty string if there is no data.

getDropEffect
(
data
:
Html.DataTransfer
)
:
String

Gets the type of drag-and-drop operation which is currently selected.

getEffectAllowed
(
data
:
Html.DataTransfer
)
:
String

Returns the type of operation that is possible.

getFiles
(
data
:
Html.DataTransfer
)
:
Array(File)

Returns the files which is contained in the data transfer.

getTypes
(
data
:
Html.DataTransfer
)
:
Array(String)

Returns the types of the data which is available.

setData
(
data
:
Html.DataTransfer
format
:
String
value
:
String
)
:
Html.DataTransfer

Sets the data fro the data transfer.

setDragImage
(
data
:
Html.DataTransfer
element
:
Dom.Element
offsetX
:
Number
offsetY
:
Number
)
:
Html.DataTransfer

Sets the element as the drag image of the data transfer.

setDropEffect
(
data
:
Html.DataTransfer
value
:
String
)
:
Html.DataTransfer

Sets the operation to a new type. The value must be none, copy, link or move.

setEffectAllowed
(
data
:
Html.DataTransfer
value
:
String
)
:
Html.DataTransfer

Sets of the type of operation that are possible.