Row drag reparenting (candidate)
Users can drag rows to reorder them among siblings or drop them onto another node to make it the new parent. Drop indicators show the target, and keyboard alternatives are provided. Moves are validated to prevent cycles, and a cancellable event lets the application persist the change.
Planned. This page shows the specification from issue #197. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
A site navigation tree with drag handles and an operations log.
Expected behavior
Dragging shows a before, after or inside indicator. Dropping a node inside its own descendant is refused. A collapsed target auto-expands after hovering for 700 ms. Undo reverts the move.
Planned API surface
rowDragReparentonRowDragMoveonRowDropping (cancellable)onRowDroppedisValidDropTargetmoveRow(rowId, newParentId, index)dropIndicatorModeAcceptance criteria
- Cycles are always prevented (pending)
- onRowDropping can veto the move (pending)
- A keyboard move (Ctrl+Shift+Arrow or a context menu) produces the same result (pending)
- Aggregates and aria-level update after the move (pending)
- moveRow works programmatically with the same validation (pending)