class domkit::DropTarget
sys::Obj
domkit::DropTarget
@Js
DropTarget converts an Elem into a drop target for drag and drop events. The canDrop
callback is used to indicate if data
can be dropped on this target. The onDrop
callback is invoked when a drop event completes.
See also: pod doc
-
bind
-
const static DropTarget bind(Elem elem)
Convert given Elem into a drop target.
-
canDrop
-
Void canDrop(|Obj->Bool| f)
Callback to indicate if data
can be dropped on this target.
-
onDrop
-
Void onDrop(|Obj| f)
Callback when data
is dropped on this target.