DataTransferItem object

Represents a single data item (string or file kind) in a DataTransferItemList for a drag operation.

HTML5 A vocabulary and associated APIs for HTML and XHTML

 

Members

The DataTransferItem object has these types of members:

Methods

The DataTransferItem object has these methods.

MethodDescription
getAsFile

Returns the file associated with the DataTransferItem.

getAsString

Invokes the given callback function, passing it the DataTransferItem object string as an argument.

webkitGetAsEntry

Returns the WebKitEntry (representing a file or directory) associated with the DataTransferItem.

 

Properties

The DataTransferItem object has these properties.

PropertyAccess typeDescription

kind

Read-only

Returns the kind of data (e.g., string or file) of the drag data item.

type

Read-only

Returns the type or format of the data for the drag data item.

 

Standards information

 

 

Show: