DataTransfer
Values
clearData
Removes the data of the specified formats. Removes all data if the argument is omitted. Read more on MDN
let clearData: (UiEventsTypes.dataTransfer, ~format: string=?) => unitParameters
UiEventsTypes.dataTransfer option< string >Return type
unitgetData
Returns the specified data. If there is no such data, returns the empty string. Read more on MDN
let getData: (UiEventsTypes.dataTransfer, string) => stringParameters
UiEventsTypes.dataTransfer stringReturn type
stringmake
let make: unit => UiEventsTypes.dataTransferParameters
unitReturn type
UiEventsTypes.dataTransfersetData
Adds the specified data. Read more on MDN
let setData: ( UiEventsTypes.dataTransfer, ~format: string, ~data: string,) => unitParameters
UiEventsTypes.dataTransfer string stringReturn type
unitsetDragImage
Uses the given element to update the drag feedback, replacing any previously specified feedback. Read more on MDN
let setDragImage: ( UiEventsTypes.dataTransfer, ~image: DomTypes.element, ~x: int, ~y: int,) => unit