Data
Sortable <pm-sortable>
List whose rows can be reordered by dragging or with the keyboard.
States
Each state is one attribute.
DisabledOverview
Drag rows with a pointer (from a [data-handle] if present, else the whole row), or with the keyboard: focus a row, Space to pick it up, ↑/↓ to move, Space to drop, Esc to cancel. Moves are announced. Children keep their own markup; value lists their data-values in order.
Attributes
| Attribute | Type | Default | Description |
|---|---|---|---|
label | string | — | Accessible name of the list. |
disabled | boolean | — | Turn reordering off. |
Events
| Event | React / Svelte prop | Description |
|---|---|---|
pm-reorder | onPmReorder | Order changed. |
Slots
| Slot | Description |
|---|---|
(default) | Rows (any elements; give each a data-value). |