open fun setDropTarget(format: String, callback: (DragEvent) -> Unit): Unit
Sets the current widget as a D&D drop target.
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.
formats
- a set of accepted D&D data formats
callback
- a callback function accepting event object called after any drop event