Module drag_run_component
Expand description
DragRun as a described component: a run of items a person reorders by dragging one.
The run changes nothing itself. A drag that lands in a new place reports one event — the
item that moved and the item it lands before, None for the end of the run — and the
owner turns it into one action on its model (items.move(item, before: next)), so a
reorder is attributed, permitted and undone like every other change. An item pressed and
let go without moving reports activate.
Structs§
- Drag
Item Props - One item of a run: what it stands for, and the view drawn in its slot.
- Drag
Items - The items of a run:
DragItems only. - Drag
RunProps - A run of items — a dock’s icons, a toolbar’s tiles, a row of cards — reordered by dragging
one. Each item is one
ui.DragItem.