Module

Web.HTML.Event.DataTransfer

Package
purescript-web-html
Repository
purescript-web/purescript-web-html

#DataTransfer Source

#files Source

files :: DataTransfer -> Maybe FileList

Contains a list of all the local files available on the data transfer. Empty if the drag operation doesn't involve dragging files.

It's possible that a drag operation may have null files, instead of an empty file list. In these cases Nothing is returned.

#types Source

types :: DataTransfer -> Array String

Returns an array of data formats used in the drag operation. If the drag operation included no data, then the array is empty.

#getData Source

getData :: MediaType -> DataTransfer -> Effect String

Retrieves the data for a given media type, or an empty string if data for that type does not exist or the data transfer object contains no data.

#setData Source

setData :: MediaType -> String -> DataTransfer -> Effect Unit

Sets the data transfer object's data for a given media format.

#DropEffect Source

#dropEffect Source

dropEffect :: DataTransfer -> Effect DropEffect

Gets the data transfer object's drop effect.

#setDropEffect Source

setDropEffect :: DropEffect -> DataTransfer -> Effect Unit

Sets the data transfer object's drop effect.

Modules
Web.HTML
Web.HTML.Common
Web.HTML.Event.BeforeUnloadEvent
Web.HTML.Event.BeforeUnloadEvent.EventTypes
Web.HTML.Event.DataTransfer
Web.HTML.Event.DragEvent
Web.HTML.Event.DragEvent.EventTypes
Web.HTML.Event.ErrorEvent
Web.HTML.Event.EventTypes
Web.HTML.Event.HashChangeEvent
Web.HTML.Event.HashChangeEvent.EventTypes
Web.HTML.Event.PageTransitionEvent
Web.HTML.Event.PageTransitionEvent.EventTypes
Web.HTML.Event.PopStateEvent
Web.HTML.Event.PopStateEvent.EventTypes
Web.HTML.Event.TrackEvent
Web.HTML.Event.TrackEvent.EventTypes
Web.HTML.HTMLAnchorElement
Web.HTML.HTMLAreaElement
Web.HTML.HTMLAudioElement
Web.HTML.HTMLBRElement
Web.HTML.HTMLBaseElement
Web.HTML.HTMLBodyElement
Web.HTML.HTMLButtonElement
Web.HTML.HTMLCanvasElement
Web.HTML.HTMLDListElement
Web.HTML.HTMLDataElement
Web.HTML.HTMLDataListElement
Web.HTML.HTMLDivElement
Web.HTML.HTMLDocument
Web.HTML.HTMLDocument.ReadyState
Web.HTML.HTMLElement
Web.HTML.HTMLEmbedElement
Web.HTML.HTMLFieldSetElement
Web.HTML.HTMLFormElement
Web.HTML.HTMLHRElement
Web.HTML.HTMLHeadElement
Web.HTML.HTMLHeadingElement
Web.HTML.HTMLHyperlinkElementUtils
Web.HTML.HTMLIFrameElement
Web.HTML.HTMLImageElement
Web.HTML.HTMLImageElement.CORSMode
Web.HTML.HTMLImageElement.DecodingHint
Web.HTML.HTMLImageElement.Laziness
Web.HTML.HTMLInputElement
Web.HTML.HTMLKeygenElement
Web.HTML.HTMLLIElement
Web.HTML.HTMLLabelElement
Web.HTML.HTMLLegendElement
Web.HTML.HTMLLinkElement
Web.HTML.HTMLMapElement
Web.HTML.HTMLMediaElement
Web.HTML.HTMLMediaElement.CanPlayType
Web.HTML.HTMLMediaElement.NetworkState
Web.HTML.HTMLMediaElement.ReadyState
Web.HTML.HTMLMetaElement
Web.HTML.HTMLMeterElement
Web.HTML.HTMLModElement
Web.HTML.HTMLOListElement
Web.HTML.HTMLObjectElement
Web.HTML.HTMLOptGroupElement
Web.HTML.HTMLOptionElement
Web.HTML.HTMLOutputElement
Web.HTML.HTMLParagraphElement
Web.HTML.HTMLParamElement
Web.HTML.HTMLPreElement
Web.HTML.HTMLProgressElement
Web.HTML.HTMLQuoteElement
Web.HTML.HTMLScriptElement
Web.HTML.HTMLSelectElement
Web.HTML.HTMLSourceElement
Web.HTML.HTMLSpanElement
Web.HTML.HTMLStyleElement
Web.HTML.HTMLTableCaptionElement
Web.HTML.HTMLTableCellElement
Web.HTML.HTMLTableColElement
Web.HTML.HTMLTableDataCellElement
Web.HTML.HTMLTableElement
Web.HTML.HTMLTableHeaderCellElement
Web.HTML.HTMLTableRowElement
Web.HTML.HTMLTableSectionElement
Web.HTML.HTMLTemplateElement
Web.HTML.HTMLTextAreaElement
Web.HTML.HTMLTimeElement
Web.HTML.HTMLTitleElement
Web.HTML.HTMLTrackElement
Web.HTML.HTMLTrackElement.ReadyState
Web.HTML.HTMLUListElement
Web.HTML.HTMLVideoElement
Web.HTML.History
Web.HTML.Location
Web.HTML.Navigator
Web.HTML.SelectionMode
Web.HTML.ValidityState
Web.HTML.Window