Interface

DataTransferItem

DataTransferItem

One drag data item. During a drag operation, each drag event has a dataTransfer property which contains a list of drag data items. Each item in the list is a DataTransferItem object.

View Source js/lib.dom.d.ts, line 1118

Members

File | null

# getAsFile

Returns a File object, if the drag data item kind is File.

View Source js/lib.dom.d.ts, line 1131

void

# getAsString

Invokes the callback with the string data as the argument, if the drag data item kind is text.

View Source js/lib.dom.d.ts, line 1136

string

# kind

Returns the drag data item kind, one of: "string", "file".

View Source js/lib.dom.d.ts, line 1121

string

# type

Returns the drag data item type string.

View Source js/lib.dom.d.ts, line 1126