DataTransfer$Typings extension
Properties
-
clearData
↔ void Function([String?])
-
getter/setter pair
-
dropEffect
↔ DropEffect
-
Returns the kind of operation that is currently selected. If the kind of operation isn't one of those that is allowed by the effectAllowed attribute, then the operation will fail.
getter/setter pair
-
effectAllowed
↔ EffectAllowed
-
Returns the kinds of operations that are to be allowed.
getter/setter pair
-
files
→ FileList
-
Returns a FileList of the files being dragged, if any.
no setter
-
getData
↔ String Function(String)
-
getter/setter pair
-
items
→ DataTransferItemList
-
Returns a DataTransferItemList object, with the drag data.
no setter
-
setData
↔ void Function(String, String)
-
getter/setter pair
-
setDragImage
↔ void Function(Element, num, num)
-
getter/setter pair
-
types
→ ReadonlyArray<String>
-
Returns a frozen array listing the formats that were set in the dragstart event. In addition, if any files are being dragged, then one of the types will be the string "Files".
no setter