DataTransferItem

Overview

The DataTransferItem object represents one drag data item. During a drag operation, each drag event has a dataTransfer property which contains a list of drag data items. Each item in the list is a DataTransferItem object.

Location

Properties


kind

 

property kind: String read;

 

String kind { get; }

 

var kind: String { get{} }

 

String kind { __get; }

 

ReadOnly Property kind() As String

type

 

property type: dynamic read;

 

dynamic type { get; }

 

var type: dynamic { get{} }

 

dynamic type { __get; }

 

ReadOnly Property type() As dynamic

Required Methods


getAsFile

Returns the File object associated with the drag data item (or null if the drag item is not a file).

 

method getAsFile: dynamic

 

dynamic getAsFile()

 

func getAsFile() -> dynamic

 

dynamic getAsFile()

 

Function getAsFile() As dynamic

getAsString

Invokes the specified callback with the drag data item string as its argument.

 

method getAsString(parcallback: dynamic): String

 

String getAsString(dynamic parcallback)

 

func getAsString(_ parcallback: dynamic) -> String

 

String getAsString(dynamic parcallback)

 

Function getAsString(parcallback As dynamic) As String

Parameters:

  • parcallback: