DataTransfer
Values
clearData
Removes the data of the specified formats. Removes all data if the argument is omitted.Read more on MDN
letclearData: (WebAPI.UIEventsAPI.dataTransfer, ~format:string=?)=>unitgetData
Returns the specified data. If there is no such data, returns the empty string.Read more on MDN
letgetData: (WebAPI.UIEventsAPI.dataTransfer,string)=>stringmake
letmake:unit=>WebAPI.UIEventsAPI.dataTransfersetData
Adds the specified data.Read more on MDN
letsetData: (WebAPI.UIEventsAPI.dataTransfer,~format:string,~data:string,)=>unitsetDragImage
Uses the given element to update the drag feedback, replacing any previously specified feedback.Read more on MDN
letsetDragImage: (WebAPI.UIEventsAPI.dataTransfer,~image:WebAPI.DOMAPI.element,~x:int,~y:int,)=>unit