W3cubDocs

/Haxe JavaScript

DataTransferItemList

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:

Variables

read onlylength:Int

An unsigned long that is the number of drag items in the list.

Methods

add(data:File):DataTransferItem

add(data:String, type:String):DataTransferItem

Adds 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():Void

Removes all of the drag items from the list.

Throws:

null

DOMError

remove(index:Int):Void

Removes 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