CRUD / foldkit-mixins-crud

Rendered HTML and Slots

PartElementSlot
Root wrapperdiv with list name idroot
Status linep role="status" or role="alert"status
Retry actionbutton type="button" when onRetry setretry
Tabletable (aria-busy while refreshing)table
Table sectionsthead, tr, tbodyhead, headRow, body
Column headerth scope="col" with aria-sortheadCell
Sort triggerbutton type="button"sort
Rowtr keyed with data-row-keyrow
Celltdcell
Row open triggerbutton type="button" in first cellopen
Load more triggerbutton 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: ListView draws a table and DetailView draws a description list; render from list.columns and Display.show directly 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-grid when you need grid selection or inline editing.
  • Cursor pagination: Remote pages are cursor-based, so onMore appends rows rather than jumping to numbered pages.

Next