CRUD / foldkit-mixins-crud
Rendered HTML and Slots
| Part | Element | Slot |
|---|---|---|
| Root wrapper | div with list name id | root |
| Status line | p role="status" or role="alert" | status |
| Retry action | button type="button" when onRetry set | retry |
| Table | table (aria-busy while refreshing) | table |
| Table sections | thead, tr, tbody | head, headRow, body |
| Column header | th scope="col" with aria-sort | headCell |
| Sort trigger | button type="button" | sort |
| Row | tr keyed with data-row-key | row |
| Cell | td | cell |
| Row open trigger | button type="button" in first cell | open |
| Load more trigger | button type="button" | more |
DetailSlots publishes root, list (dl), status, term, value, and retry. Opening a row uses a real <button> rather than a row click handler for keyboard and screen-reader accessibility.
Limits
- Fixed layouts:
ListViewdraws a table andDetailViewdraws a description list; render fromlist.columnsandDisplay.showdirectly for card grids or grouped headers. - Nested values: Nested relations in a Selection render as joined text; format them with
cells. - No row selection or inline cell editing: Use
foldkit-data-gridwhen you need grid selection or inline editing. - Cursor pagination: Remote pages are cursor-based, so
onMoreappends rows rather than jumping to numbered pages.
Next
- Declare lists, details, editors, and removers:
foldkit-crud - Render and style edit forms inside
EditorView:foldkit-mixins-form - Style Slots with Mixins recipes and Behaviors:
foldkit-mixins