DataTransfer
Generated.swift:3913class DataTransfer
class DataTransfer
import DOM
protocol ConstructibleFromJSValue
Types conforming to this protocol can be constructed from JSValue
.
protocol ConvertibleToJSValue
Objects that can be converted to a JavaScript value, preferably in a lossless manner.
protocol CustomStringConvertible
A type with a customized textual representation.
protocol JSBridgedClass : JSBridgedType
Conform to this protocol when your Swift class wraps a JavaScript class.
protocol JSBridgedType : ConstructibleFromJSValue, ConvertibleToJSValue, CustomStringConvertible
Use this protocol when your type has no single JavaScript class. For example, a union type of multiple classes or primitive values.
convenience init()
required init(unsafelyWrapping jsObject: JSObject)
class var constructor: JSFunction? { get }
@ReadWriteAttribute var dropEffect: String { get set }
@ReadWriteAttribute var effectAllowed: String { get set }
@ReadonlyAttribute var files: FileList { get }
@ReadonlyAttribute var items: DataTransferItemList { get }
let jsObject: JSObject
@ReadonlyAttribute var types: [String] { get }
func clearData(format: String? = nil)
func getData(format: String) -> String
func setData(format: String, data: String)
func setDragImage(image: Element, x: Int32, y: Int32)
init?(from value: JSValue)
init?(from object: JSObject)
static func construct(from value: JSValue) -> Self?
var description: String { get }
var jsValue: JSValue { get }
func jsValue() -> JSValue