DataTransferItemList

@native @JSGlobal @JSType
class DataTransferItemList extends Object

A list of DataTransferItem objects representing items being dragged. During a drag operation, each DragEvent has a dataTransfer property and that property is a DataTransferItemList.

class Object
trait Any
class Object
trait Matchable
class Any

Value members

Concrete methods

def add(data: String, `type`: String): DataTransferItem

Adds a new entry for the given data to the drag data store. If the data is plain text then a type string has to be provided also.

Adds a new entry for the given data to the drag data store. If the data is plain text then a type string has to be provided also.

Adds a new entry for the given data to the drag data store. If the data is plain text then a type string has to be provided also.

Adds a new entry for the given data to the drag data store. If the data is plain text then a type string has to be provided also.

@JSBracketAccess
def apply(index: Int): DataTransferItem

Returns the DataTransferItem object representing the indexth entry in the drag data store.

Returns the DataTransferItem object representing the indexth entry in the drag data store.

def clear(): Unit

Removes all the entries in the drag data store.

Removes all the entries in the drag data store.

def length: Int

Returns the number of items in the drag data store.

Returns the number of items in the drag data store.

def remove(index: Int): Unit

Removes the indexth entry in the drag data store.

Removes the indexth entry in the drag data store.

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