Drag rows between grids
Moves or copies rows from one grid to another by drag-and-drop, with configurable drop zones and transformation hooks. Assignment UIs such as available/selected lists can be built this way.
Planned. This page shows the specification from issue #199. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
Two side-by-side grids: 'Unassigned' (25 people) and 'Team' (3 people).
Expected behavior
Dragging from left to right moves rows by default. Copy mode leaves the source unchanged. Duplicates are rejected with an indicator. Keyboard 'Send to Team' actions give the same result.
Planned API surface
api.addRowDropZoneapi.removeRowDropZonegetRowDropZoneParamsdropEffect:'move'|'copy'transformDroppedRowisRowDropAllowedonRowDropExternalAcceptance criteria
- Move removes rows from the source and inserts them at the drop position in the target (pending)
- Copy inserts transformed rows with new ids via transformDroppedRow (pending)
- Duplicate prevention uses getRowId equality (pending)
- Dropping between grids with different column sets is supported through transformDroppedRow (pending)
- A non-drag alternative (context action or buttons) exists (pending)