DataTransferItemList
Values
add
Adds a new entry for the given data to the drag data store. If the data is plain text then a type string has to be provided also. Read more on MDN
let add: ( WebAPI.UIEventsAPI.dataTransferItemList, ~data: string, ~type_: string,) => WebAPI.UIEventsAPI.dataTransferItem
Parameters
WebAPI.UIEventsAPI.dataTransferItemList string stringReturn type
WebAPI.UIEventsAPI.dataTransferItemadd2
Adds a new entry for the given data to the drag data store. If the data is plain text then a type string has to be provided also. Read more on MDN
let add2: ( WebAPI.UIEventsAPI.dataTransferItemList, WebAPI.FileAPI.file,) => WebAPI.UIEventsAPI.dataTransferItem
Parameters
WebAPI.UIEventsAPI.dataTransferItemList WebAPI.FileAPI.fileReturn type
WebAPI.UIEventsAPI.dataTransferItemclear
Removes all the entries in the drag data store. Read more on MDN
let clear: WebAPI.UIEventsAPI.dataTransferItemList => unit
remove
Removes the indexth entry in the drag data store. Read more on MDN
let remove: (WebAPI.UIEventsAPI.dataTransferItemList, int) => unit