class domkit::DropTarget

sys::Obj
  domkit::DropTarget

@Js

Source

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

bind

static DropTarget bind(Elem elem)

Source

Convert given Elem into a drop target.

canDrop

Void canDrop(Func<Bool,Obj> f)

Source

Callback to indicate if data can be dropped on this target.

onDrop

Void onDrop(Func<Void,Obj> f)

Source

Callback when data is dropped on this target.

onOver

Void onOver(Func<Void,Point> f)

Source

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