type

DragTarget

src @Js
class DragTarget : Obj

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

See also: docDomkit

methods

bind

Convert given Elem into a drag target.

onDrag

Callback to get data payload for drag event.

onDragImage

Callback to customize the drag image for drag event.

onEnd

Callback when the drag event has ended.

Slot Details

bind

src static DragTarget bind(Elem elem)

Convert given Elem into a drag target.

onDrag

src Void onDrag(|Elem->Obj| f)

Callback to get data payload for drag event.

onDragImage

src Void onDragImage(|Obj->Elem| f)

Callback to customize the drag image for drag event.

onEnd

src Void onEnd(|Elem| f)

Callback when the drag event has ended.