class domkit::DragTarget

sys::Obj
  domkit::DragTarget

@Js

DragTarget converts an Elem into a drag target for a drag-and-drop events.

See also: docDomkit

bind

const static DragTarget bind(Elem elem)

Convert given Elem into a drag target.

onDrag

Void onDrag(|Elem->Obj| f)

Callback to get data payload for drag event.

onEnd

Void onEnd(|Elem| f)

Callback when the drag event has ended.