Definition
HTML Standard defines DataTransfer
[Exposed=Window]
interface DataTransfer {
constructor();
attribute DOMString dropEffect;
attribute DOMString effectAllowed;
[SameObject] readonly attribute DataTransferItemList items;
undefined setDragImage(Element image, long x, long y);
/* old interface */
readonly attribute FrozenArray<DOMString> types;
DOMString getData(DOMString format);
undefined setData(DOMString format, DOMString data);
undefined clearData(optional DOMString format);
[SameObject] readonly attribute FileList files;
};
Methods and attributes that return objects implementing DataTransfer
Referring IDL interfaces/dictionaries
Referring specifications
- Clipboard API and events refers to
DataTransfer
- Input Events Level 2 refers to
DataTransfer