DragTarget
Examples
See these.
A control that completes drag operation when a Draggable control is dropped.
When a Draggable is dragged on top of a DragTarget, the DragTarget is asked
whether it will accept the data the Draggable is carrying. The DragTarget will
accept incoming drag if it belongs to the same group as Draggable. If the user
does drop the Draggable on top of the DragTarget (and the DragTarget has
indicated that it will accept the Draggable's data), then the DragTarget is
asked to accept the Draggable's data.
Inherits: Control
Properties
Events
on_accept- Called when the user does drop an acceptable (same group) draggable on this target.on_leave- Called when a draggable leaves this target.on_move- Called when a draggable moves within this target.on_will_accept- Called when a draggable is dragged on this target.
Properties
Events
on_acceptclass-attributeinstance-attribute
on_accept: Optional[EventHandler[DragTargetEvent]] = NoneCalled when the user does drop an acceptable (same group) draggable on this target.
Use page.get_control(e.src_id) to retrieve Control reference by its ID.
on_leaveclass-attributeinstance-attribute
on_leave: Optional[EventHandler[DragTargetLeaveEvent]] = NoneCalled when a draggable leaves this target.
on_moveclass-attributeinstance-attribute
on_move: Optional[EventHandler[DragTargetEvent]] = NoneCalled when a draggable moves within this target.
on_will_acceptclass-attributeinstance-attribute
on_will_accept: Optional[EventHandler[DragWillAcceptEvent]] = NoneCalled when a draggable is dragged on this target.