DataTransfer

A map containing a mapping of the mime type of the corresponding transferred data.

Drag and drop controllers that implement handleDrag can add additional mime types to the data transfer. These additional mime types will only be included in the handleDrop when the drag was initiated from an element in the same drag and drop controller.

Online Documentation

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun forEach(callbackfn: (item: DataTransferItem, mimeType: String, dataTransfer: DataTransfer) -> Unit, thisArg: JsAny? = definedExternally)

Allows iteration through the data transfer items.

Link copied to clipboard
open operator fun get(key: Symbol.iterator): () -> JsIterator<Tuple2<JsString, DataTransferItem>>

fun get(mimeType: String): DataTransferItem?

Retrieves the data transfer item for a given mime type.

Link copied to clipboard
fun set(mimeType: String, value: DataTransferItem)

Sets a mime type to data transfer item mapping.