DataTransferItem

@native @JSGlobal @JSType
class DataTransferItem extends Object

Each DataTransferItem object is associated with a DataTransfer object.

class Object
trait Any
class Object
trait Matchable
class Any

Value members

Concrete methods

def `type`: String

Returns the drag data item type string.

Returns the drag data item type string.

Returns a File object, if the drag data item kind is File.

Returns a File object, if the drag data item kind is File.

def getAsString(callback: Function1[String, Unit]): Unit

Invokes the callback with the string data as the argument, if the drag data item kind is text.

Invokes the callback with the string data as the argument, if the drag data item kind is text.

Returns the drag data item kind, one of: "string", "file".

Returns the drag data item kind, one of: "string", "file".

Inherited methods

def hasOwnProperty(v: String): Boolean
Inherited from:
Object
def isPrototypeOf(v: Object): Boolean
Inherited from:
Object
def propertyIsEnumerable(v: String): Boolean
Inherited from:
Object
def toLocaleString(): String
Inherited from:
Object
def valueOf(): Any
Inherited from:
Object