DataTransfer

Overview

The DataTransfer object is used to hold the data that is being dragged during a drag and drop operation. It may hold one or more data items, each of one or more data types. For more information about drag and drop, see HTML Drag and Drop API.

Location

 

dropEffect

 

property dropEffect: String read write;

 

String dropEffect { get; set; }

 

var dropEffect: String { get{} set{} }

 

String dropEffect { __get; __set; }

 

Property dropEffect() As String

effectAllowed

 

property effectAllowed: String read write;

 

String effectAllowed { get; set; }

 

var effectAllowed: String { get{} set{} }

 

String effectAllowed { __get; __set; }

 

Property effectAllowed() As String

files

 

property files: array of String read write;

 

String[] files { get; set; }

 

var files: String... { get{} set{} }

 

String[] files { __get; __set; }

 

Property files() As String()

getData

Retrieves the data for a given type, or an empty string if data for that type does not exist or the data transfer contains no data.

 

method getData(parformat: dynamic): String

 

String getData(dynamic parformat)

 

func getData(_ parformat: dynamic) -> String

 

String getData(dynamic parformat)

 

Function getData(parformat As dynamic) As String

Parameters:

  • parformat:

items

 

property items: array of String read;

 

String[] items { get; }

 

var items: String... { get{} }

 

String[] items { __get; }

 

ReadOnly Property items() As String()

mozSourceNode

 

property mozSourceNode: Node read;

 

Node mozSourceNode { get; }

 

var mozSourceNode: Node { get{} }

 

Node mozSourceNode { __get; }

 

ReadOnly Property mozSourceNode() As Node

setData

Set the data for a given type. If data for the type does not exist, it is added at the end, such that the last item in the types list will be the new format. If data for the type already exists, the existing data is replaced in the same position.

 

method setData(parformat: dynamic; pardata: dynamic)

 

void setData(dynamic parformat, dynamic pardata)

 

func setData(_ parformat: dynamic, _ pardata: dynamic)

 

void setData(dynamic parformat, dynamic pardata)

 

Sub setData(parformat As dynamic, pardata As dynamic)

Parameters:

  • parformat:
  • pardata:

 

dropEffect

 

property dropEffect: String read write;

 

String dropEffect { get; set; }

 

var dropEffect: String { get{} set{} }

 

String dropEffect { __get; __set; }

 

Property dropEffect() As String

effectAllowed

 

property effectAllowed: String read write;

 

String effectAllowed { get; set; }

 

var effectAllowed: String { get{} set{} }

 

String effectAllowed { __get; __set; }

 

Property effectAllowed() As String

files

 

property files: array of String read write;

 

String[] files { get; set; }

 

var files: String... { get{} set{} }

 

String[] files { __get; __set; }

 

Property files() As String()

items

 

property items: array of String read;

 

String[] items { get; }

 

var items: String... { get{} }

 

String[] items { __get; }

 

ReadOnly Property items() As String()

mozSourceNode

 

property mozSourceNode: Node read;

 

Node mozSourceNode { get; }

 

var mozSourceNode: Node { get{} }

 

Node mozSourceNode { __get; }

 

ReadOnly Property mozSourceNode() As Node

 

getData

Retrieves the data for a given type, or an empty string if data for that type does not exist or the data transfer contains no data.

 

method getData(parformat: dynamic): String

 

String getData(dynamic parformat)

 

func getData(_ parformat: dynamic) -> String

 

String getData(dynamic parformat)

 

Function getData(parformat As dynamic) As String

Parameters:

  • parformat:

setData

Set the data for a given type. If data for the type does not exist, it is added at the end, such that the last item in the types list will be the new format. If data for the type already exists, the existing data is replaced in the same position.

 

method setData(parformat: dynamic; pardata: dynamic)

 

void setData(dynamic parformat, dynamic pardata)

 

func setData(_ parformat: dynamic, _ pardata: dynamic)

 

void setData(dynamic parformat, dynamic pardata)

 

Sub setData(parformat As dynamic, pardata As dynamic)

Parameters:

  • parformat:
  • pardata: