Reference

Draggable

Draggable

Draggable control. Build it with the draggable helper.

Example

draggable(
  content: text("Draggable"),
  expand: true,
  on_drag_complete: ->(event) {}
)

Properties

  • affinity
  • axis
  • content — The single child control rendered inside this control.
  • content_feedback
  • content_when_dragging
  • group
  • max_simultaneous_drags

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

Events

  • on_drag_complete — Fired on drag complete.
  • on_drag_start — Fired when a drag begins.

Reference

  • Family: shared
  • Widget type: draggable
  • Helper: draggable