DataTransfer

abstract external class DataTransfer (source)

Platform and version requirements: JS

Exposes the JavaScript DataTransfer to Kotlin

Constructors

<init>

DataTransfer()

Exposes the JavaScript DataTransfer to Kotlin

Properties

dropEffect

open var dropEffect: String

effectAllowed

open var effectAllowed: String

files

open val files: FileList

items

open val items: DataTransferItemList

types

open val types: Array<out String>

Functions

clearData

fun clearData(format: String = definedExternally)

getData

fun getData(format: String): String

setData

fun setData(format: String, data: String)

setDragImage

fun setDragImage(image: Element, x: Int, y: Int)

Inherited Functions

equals

open operator fun equals(other: Any?): Boolean

Indicates whether some other object is "equal to" this one. Implementations must fulfil the following requirements:

hashCode

open fun hashCode(): Int

Returns a hash code value for the object. The general contract of hashCode is:

toString

open fun toString(): String

Returns a string representation of the object.