DataTransferItem

Encapsulates data transferred during drag and drop operations.

Online Documentation

Constructors

Link copied to clipboard
constructor(value: JsAny?)

Properties

Link copied to clipboard
external val value: JsAny?

Custom data stored on this item.

Functions

Link copied to clipboard
external fun asFile(): DataTransferFile?

Try getting the file associated with this data transfer item.

Link copied to clipboard
external fun asStringAsync(): PromiseLike<JsString>

Get a string representation of this item.