DataTransferItemList
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.
interface DataTransferItemList {
[index: number]: DataTransferItem;
readonly length: number;
[[Symbol.iterator]](): IterableIterator<DataTransferItem>;
add(data: File): DataTransferItem | null;
clear(): void;
remove(index: number): void;
}var DataTransferItemList: {
prototype: DataTransferItemList;
new (): DataTransferItemList;
};§Index Signatures
§
[index: number]: DataTransferItem
§Methods
§
[[Symbol.iterator]](): IterableIterator<DataTransferItem>
[src]§
Adds a new entry for the given data to the drag data store. If the data is plain text then a type string has to be provided also.
§
add(data: File): DataTransferItem | null
[src]