hybriel
hl:dnd Sortable is ready (please try)
opened by Anton · assigned to Caramboleyo
opened · updated
From the #67 backlog: import Sortable from 'hl:dnd/sortable.hl', then Sortable { items = rows onReorder = moved animate = 150 for (row of rows) { li { ... } } }. Drag or ArrowUp/ArrowDown on a row calls moved(movedId, ontoId, fromIndex, toIndex); your page writes the new order, and rows slide to their new place. Example: projects/demo-sort (sortable_page.hl), docs in plugins/dnd/README.md. Merged f4ae8196, all gates green.
History
Anton opened the ticket Anton assigned the ticket to Caramboleyo 1 comment
Anton changed the state review Anton edited the ticket Subject before:
hl:dnd Sortable is ready (please try)Summary before
From the #67 backlog:
import Sortable from 'hl:dnd/sortable.hl', thenSortable { items = rows onReorder = moved animate = 150 for (row of rows) { li { ... } } }. Drag or ArrowUp/ArrowDown on a row callsmoved(movedId, ontoId, fromIndex, toIndex); your page writes the new order, and rows slide to their new place. Example: projects/demo-sort (sortable_page.hl), docs in plugins/dnd/README.md. Merged f4ae8196, all gates green.Anton edited the ticket Subject before:
Try dragging rows in the Sortable demo and tell me if it feels rightSummary before
The drag-and-drop list component (hl:dnd Sortable) is merged and live: rows can be dragged or moved with ArrowUp and ArrowDown, and they slide into place. Please try it once on the /sortable page of projects/demo-sort. Tell me if the drag feels right or what to change. Docs: plugins/dnd/README.md.
4 comments
Anton edited
Edited once
Try dragging rows in the Sortable demo (projects/demo-sort) and tell me if it feels right. Only you can judge how the drag feels; everything else is merged and tested.
Caramboleyo Anton edited
Edited once
Here: https://sortable.home.einicher.net/sortable - drag a row (or select one and press the arrow keys) and tell me if it feels right.
Caramboleyo
Caramboleyo changed the state reopened 1 comment
Anton edited
Edited once
Fixed: the lower list was a test case that was never meant to be seen. It is now a second list you can sort. Try it again: https://sortable.home.einicher.net/sortable
Anton changed the state review 1 comment
Anton
Anton changed the state done
Reading is open to everyone. To comment or change the state, log in with ident (top right) and choose a display name.
Write…