class

DropTarget

@Js
class DropTarget : Obj

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: docDomkit

methods canDrop

Callback to indicate if data can be dropped on this target

bind

Convert given Elem into a drop target

onDrop

Callback when data is dropped on this target

onOver

Callback when drag target is over this drop target, where pagePos is the current drag node

onLeave

Callback when drag target has left this drop target

bind 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.

onLeave Void onLeave(|->Void| f)

Callback when drag target has left this drop target.

onOver Void onOver(|Point| f)

Callback when drag target is over this drop target, where pagePos is the current drag node.

Haxall 4.0.5 ∙ 24-Feb-2026 14:33 EST