Definition
HTML Standard defines DataTransferItem
[Exposed=Window]
interface DataTransferItem {
readonly attribute DOMString kind;
readonly attribute DOMString type;
undefined getAsString(FunctionStringCallback? _callback);
File? getAsFile();
};
This interface is extended in the following specifications:
- File and Directory Entries API
partial interface DataTransferItem { FileSystemEntry? webkitGetAsEntry(); };
- File System Access
partial interface DataTransferItem { Promise<FileSystemHandle?> getAsFileSystemHandle(); };
Consolidated IDL (across mixin and partials)
[Exposed=Window]
interface DataTransferItem {
readonly attribute DOMString kind;
readonly attribute DOMString type;
undefined getAsString(FunctionStringCallback? _callback);
File? getAsFile();
FileSystemEntry? webkitGetAsEntry();
Promise<FileSystemHandle?> getAsFileSystemHandle();
};
Methods and attributes that return objects implementing DataTransferItem
Referring IDL interfaces/dictionaries
Referring specifications
- File and Directory Entries API refers to
DataTransferItem
- File System Access refers to
DataTransferItem