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

setDropTarget

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

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