Global Index
HTML5 JS API Index > Drag and Drop Tutorials & Specs

DataTransferItemList

Each DataTransfer object is associated with a DataTransferItemList object.

Properties
unsigned long
length
The length attribute must return zero if the object is in the disabled mode; otherwise it must return the number of items in the drag data store item list.
Operations
DataTransferItem?add(any data, optional DOMString type)
void
clear()
The clear method, if the DataTransferItemList object is in the read/write mode, must remove all the items from the drag data store. Otherwise, it must do nothing.
DataTransferItem
getter(unsigned long index)
To determine the value of an indexed property i of a DataTransferItemList object, the user agent must return a DataTransferItem object representing the ith item in the drag data store. The same object must be returned each time a particular item is obtained from this DataTransferItemList object.
voidremove(unsigned long index)
Referenced by
DataTransferitems