package js.html
Available on js
The DataTransferItemList object is a list of DataTransferItem objects representing items being dragged. During a drag operation, each DragEvent has a dataTransfer property and that property is a DataTransferItemList.
Documentation DataTransferItemList by Mozilla Contributors, licensed under CC-BY-SA 2.5.
See also:
read onlylength:IntAn unsigned long that is the number of drag items in the list.
add(data:File):DataTransferItemadd(data:String, type:String):DataTransferItemAdds an item (either a File object or a DOMString) to the drag item list and returns a DataTransferItem object for the new item.
Throws:
null |
DOMError |
|---|
clear():VoidRemoves all of the drag items from the list.
Throws:
null |
DOMError |
|---|
remove(index:Int):VoidRemoves the drag item from the list at the given index.
Throws:
null |
DOMError |
|---|
© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/html/DataTransferItemList.html