Skip to content

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

add2

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

clear

Removes all the entries in the drag data store. Read more on MDN

let clear: WebAPI.UIEventsAPI.dataTransferItemList => unit

Parameters

WebAPI.UIEventsAPI.dataTransferItemList

Return type

unit

remove

Removes the indexth entry in the drag data store. Read more on MDN

let remove: (WebAPI.UIEventsAPI.dataTransferItemList, int) => unit

Parameters

WebAPI.UIEventsAPI.dataTransferItemList int

Return type

unit