kvision / pl.treksoft.kvision.core / Widget / setDropTarget

setDropTarget

(js) open fun setDropTarget(format: String, callback: (DragEvent) -> Unit): Unit

Sets the current widget as a D&D drop target.

Parameters

format - accepted D&D data format

callback - a callback function accepting event object called after any drop event

(js) open fun setDropTarget(formats: Set<String>? = null, callback: (DragEvent) -> Unit): Unit

Sets the current widget as a D&D drop target.

Parameters

formats - a set of accepted D&D data formats

callback - a callback function accepting event object called after any drop event