- Index
- »
- domkit
- »
- DropTarget
type
DropTarget
src
@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
bind |
Convert given Elem into a drop target. |
---|---|
canDrop |
Callback to indicate if |
onDrop |
Callback when |
onLeave |
Callback when drag target has left this drop target. |
onOver |
Callback when drag target is over this drop target, where |
Slot Details
bind
src
static DropTarget bind(Elem elem)
Convert given Elem into a drop target.