Skip to main content
DataTransferItemList object

Represents all of the data items in a single drag and drop operation.

HTML5 A vocabulary and associated APIs for HTML and XHTML

 

Syntax


var dataItem = dataTransferItemsList[i];

Members

The DataTransferItemList object has these types of members:

Methods

The DataTransferItemList object has these methods.

MethodDescription
add()

Creates a new a new DataTransferItem with the supplied data and adds it to the list.

add()

Creates a new a new DataTransferItem with the supplied data and adds it to the list.

clear

Removes all DataTransferItems in the list.

clear

Removes all DataTransferItems in the list.

remove

Removes the specified DataTransferItem from the list.

remove

Removes the specified DataTransferItem from the list.

 

Properties

The DataTransferItemList object has these properties.

PropertyAccess typeDescription

length

Read-only

Returns the size of the DataTransferItemList.

length

Read-only

Returns the size of the DataTransferItemList.

 

Standards information