WebIDLpedia

DataTransferItem interface

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:

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