CRUD / API

foldkit-mixins-crud

foldkit-mixins-crud — foldkit-crud lists and details drawn through slots.

foldkit-crud describes each column and draws nothing. This package draws a list as an accessible table and a detail as a description list, and publishes every element as a Slot, so an application styles and extends them the way it does any other SlotView. What a click means is the application's: a list holds no state, so the Messages for opening a row, sorting, and loading more arrive as inputs.

Namespaces

ConfirmView
DetailView
EditorView
Empty
Failure
ListView
LoadingWhat a read says before it has an answer, wherever rows or a value are not the thing to draw. Each draws one paragraph on the application's own status slot:…
RowListView
Toolbar

Values

ConfirmSlots
DetailSlotsA detail: each selected member as a term and its value.
EditorSlots
ListSlotsA list: the table, and what stands in for it while there is none.
RowListSlotsA list drawn as ul/li rows: the same states as a ListView, other markup.
ToolbarSlots

Interfaces

ConfirmInput
ConfirmWordsWhat a question before a delete says. {name} is the thing's, {message} the error's.
DetailInputWhat a detail's attachments may read, and what the application gives it.
DisplayContextWhat a renderer draws one value from. row is the list's row, or the detail's whole value.
EditorInput
EditorWordsWhat an editor says itself. A save that did not land is the form's to say, beside its button (Crud.editor's words), so it is announced once.
ListInputWhat a list's Style and Behavior attachments may read, and what the application gives it.
RowListInputWhat a RowListView's drawings may read, and what the application gives it.
ToolbarInputA list's controls, each the application's own drawing: the search box, the filters, the order and the actions. It reads no query state; what each control…
ViewWordsThe words of a list or a detail that are not a value's own.

Types

DisplayRenderersRenderers by the kind of Display they draw. A kind with none says its text (Display.show), so this is how a badge, a link, or a relative date is drawn…