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(Func<Obj,Elem> f)

Source

Callback to get data payload for drag event.

onDragImage

Void onDragImage(Func<Elem,Obj> f)

Source

Callback to customize the drag image for drag event.

onEnd

Void onEnd(Func<Void,Elem> f)

Source

Callback when the drag event has ended.