Module

DOM.HTML.Event.DragEvent.DataTransfer

Package
purescript-domDEPRECATED
Repository
purescript-web/purescript-dom

Re-exports from DOM.HTML.Event.DataTransfer

#DropEffect Source

#DataTransfer Source

#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.

#setDropEffect Source

setDropEffect :: forall eff. DropEffect -> DataTransfer -> Eff (dom :: DOM | eff) Unit

Sets the data transfer object's drop effect.

#setData Source

setData :: forall eff. MediaType -> String -> DataTransfer -> Eff (dom :: DOM | eff) Unit

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

Example:

setData textPlain "Foo" dataTransfer

#getData Source

getData :: forall eff. MediaType -> DataTransfer -> Eff (dom :: DOM | eff) 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.

#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.

#dropEffect Source

dropEffect :: forall eff. DataTransfer -> Eff (dom :: DOM | eff) DropEffect

Gets the data transfer object's drop effect.

Modules
DOM
DOM.CSS.Event.Types
DOM.Event.ClipboardEvent
DOM.Event.CompositionEvent
DOM.Event.Event
DOM.Event.EventPhase
DOM.Event.EventTarget
DOM.Event.FocusEvent
DOM.Event.KeyboardEvent
DOM.Event.MouseEvent
DOM.Event.PopstateEvent
DOM.Event.TouchEvent
DOM.Event.Types
DOM.Event.WheelEvent
DOM.File.Blob
DOM.File.File
DOM.File.FileList
DOM.File.FileReader
DOM.File.FileReader.ReadyState
DOM.File.Types
DOM.HTML
DOM.HTML.Document
DOM.HTML.Document.ReadyState
DOM.HTML.Event.DataTransfer
DOM.HTML.Event.DragEvent
DOM.HTML.Event.DragEvent.DataTransfer
DOM.HTML.Event.ErrorEvent
DOM.HTML.Event.EventTypes
DOM.HTML.Event.HashChangeEvent
DOM.HTML.Event.Types
DOM.HTML.HTMLAnchorElement
DOM.HTML.HTMLAreaElement
DOM.HTML.HTMLBaseElement
DOM.HTML.HTMLButtonElement
DOM.HTML.HTMLCanvasElement
DOM.HTML.HTMLDataElement
DOM.HTML.HTMLDataListElement
DOM.HTML.HTMLElement
DOM.HTML.HTMLEmbedElement
DOM.HTML.HTMLFieldSetElement
DOM.HTML.HTMLFormElement
DOM.HTML.HTMLHyperlinkElementUtils
DOM.HTML.HTMLIFrameElement
DOM.HTML.HTMLImageElement
DOM.HTML.HTMLInputElement
DOM.HTML.HTMLKeygenElement
DOM.HTML.HTMLLIElement
DOM.HTML.HTMLLabelElement
DOM.HTML.HTMLLegendElement
DOM.HTML.HTMLLinkElement
DOM.HTML.HTMLMapElement
DOM.HTML.HTMLMediaElement
DOM.HTML.HTMLMediaElement.CanPlayType
DOM.HTML.HTMLMediaElement.NetworkState
DOM.HTML.HTMLMediaElement.ReadyState
DOM.HTML.HTMLMetaElement
DOM.HTML.HTMLMeterElement
DOM.HTML.HTMLModElement
DOM.HTML.HTMLOListElement
DOM.HTML.HTMLObjectElement
DOM.HTML.HTMLOptGroupElement
DOM.HTML.HTMLOptionElement
DOM.HTML.HTMLOutputElement
DOM.HTML.HTMLParamElement
DOM.HTML.HTMLProgressElement
DOM.HTML.HTMLQuoteElement
DOM.HTML.HTMLScriptElement
DOM.HTML.HTMLSelectElement
DOM.HTML.HTMLSourceElement
DOM.HTML.HTMLStyleElement
DOM.HTML.HTMLTableCellElement
DOM.HTML.HTMLTableColElement
DOM.HTML.HTMLTableElement
DOM.HTML.HTMLTableHeaderCellElement
DOM.HTML.HTMLTableRowElement
DOM.HTML.HTMLTableSectionElement
DOM.HTML.HTMLTemplateElement
DOM.HTML.HTMLTextAreaElement
DOM.HTML.HTMLTimeElement
DOM.HTML.HTMLTitleElement
DOM.HTML.HTMLTrackElement
DOM.HTML.HTMLTrackElement.ReadyState
DOM.HTML.HTMLVideoElement
DOM.HTML.History
DOM.HTML.Location
DOM.HTML.Navigator
DOM.HTML.SelectionMode
DOM.HTML.Types
DOM.HTML.URL
DOM.HTML.Window
DOM.Node.ChildNode
DOM.Node.ClassList
DOM.Node.Document
DOM.Node.DocumentType
DOM.Node.Element
DOM.Node.HTMLCollection
DOM.Node.MutationObserver
DOM.Node.MutationRecord
DOM.Node.Node
DOM.Node.NodeList
DOM.Node.NodeType
DOM.Node.NonDocumentTypeChildNode
DOM.Node.NonElementParentNode
DOM.Node.ParentNode
DOM.Node.Types
DOM.Util.FFI
DOM.WebStorage.Event.StorageEvent
DOM.WebStorage.Event.Types
DOM.WebStorage.Storage
DOM.WebStorage.Types
DOM.Websocket.BinaryType
DOM.Websocket.Event.CloseEvent
DOM.Websocket.Event.EventTypes
DOM.Websocket.Event.MessageEvent
DOM.Websocket.Event.Types
DOM.Websocket.ReadyState
DOM.Websocket.Types
DOM.Websocket.WebSocket
DOM.XHR.FormData
DOM.XHR.Types