Interface DataTransferItem
interface DataTransferItem {
kind: string;
type: string;
getAsFile(): File;
getAsString(callback: FunctionStringCallback): void;
webkitGetAsEntry(): FileSystemEntry;
}
kind: string;
type: string;
getAsFile(): File;
getAsString(callback: FunctionStringCallback): void;
webkitGetAsEntry(): FileSystemEntry;
}
 Index
Properties
Methods
 Properties
Readonlykind
kind: string
Returns the drag data item kind, one of: "string", "file".
Readonlytype
type: string
Returns the drag data item type string.
 Methods
getAsFile  
getAsString  
- getAsString(callback: FunctionStringCallback): void
- Invokes the callback with the string data as the argument, if the drag data item kind is text. - Parameters- callback: FunctionStringCallback
 - Returns void
webkitGetAsEntry   
- webkitGetAsEntry(): FileSystemEntry
- Returns FileSystemEntry
One drag data item. During a drag operation, each drag event has a dataTransfer property which contains a list of drag data items. Each item in the list is a DataTransferItem object.
MDN Reference