DataTransferItem
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.
interface DataTransferItem {
readonly kind: string;
readonly type: string;
getAsFile(): File | null;
getAsString(callback: FunctionStringCallback | null): void;
webkitGetAsEntry(): FileSystemEntry | null;
}var DataTransferItem: {
prototype: DataTransferItem;
new (): DataTransferItem;
};§Properties
§Methods
§
getAsString(callback: FunctionStringCallback | null): void
[src]Invokes the callback with the string data as the argument, if the drag data item kind is text.
§
webkitGetAsEntry(): FileSystemEntry | null
[src]