class domkit::DragTarget

sys::Obj
  domkit::DragTarget

@Js

Source

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

See also: docDomkit

bind

static DragTarget bind(Elem elem)

Source

Convert given Elem into a drag target.

onDrag

Void onDrag(|Elem->Obj| f)

Source

Callback to get data payload for drag event.

onDragImage

Void onDragImage(|Obj->Elem| f)

Source

Callback to customize the drag image for drag event.

onEnd

Void onEnd(|Elem| f)

Source

Callback when the drag event has ended.