Reference

DragTarget

DragTarget

DragTarget control. Build it with the drag_target helper.

Example

drag_target(
  content: text("DragTarget"),
  expand: true,
  on_accept: ->(event) {}
)

Properties

  • content — The single child control rendered inside this control.
  • group

Plus the common layout and animation properties shared by most controls (expand, visible, disabled, opacity, width, height, align, tooltip, animate_*, …).

Events

  • on_accept — Fired on accept.
  • on_leave — Fired on leave.
  • on_move — Fired on move.
  • on_will_accept — Fired on will accept.

Reference

  • Family: shared
  • Widget type: dragtarget
  • Helper: drag_target