CRUDUI

Home > @polyspec/crudui-generator-react

crudui-generator-react package

Functions

Function

Description

Cell({ cell, as, base, }, input)

One cell carrying the per-row resolved design. as selects the host element: td (table layout, default) or span (card layout — a <td> is illegal outside a table). The base class is crudui-list__cell crudui-value crudui-value--TYPE for table cells and crudui-list__card-value for card cells. The body is identical across hosts EXCEPT the html cell, whose raw markup is the host's own inner html (no wrapper element).

Controls({ controls }, input)

Render one control group of data-crudui-action buttons.

DataPanel({ data, messages }, input)

Current data markup, rendered directly from the data.

DataView_2({ form }, input)

Current submission data of a form instance.

Detail({ vm }, input)

Render an evaluated read-only detail model without data access or evaluation: the actions, when the detail has any, and the definition list.

Form({ form, renderButtons, options }, input)

An interactive form whose structure can be prepared and cached before data arrives.

List({ vm, layout }, input)

Render the .crudui-list envelope around the description, toolbar, table/card body and pagination.

Node_2({ vm }, input)

Render one node of the recursive form grammar.

Outline({ form, formRef }, input)

Structure map of a form instance with its form controls.

OutlineView({ state, messages, rootRef }, input)

Structure map markup for evaluated nodes returned by bindForm.

Widget({ w }, input)

Render one widget model (or surfaced unsupported marker) as JSX.

Interfaces

Interface

Description

DataPanelProps

Props for the stateless data view.

FormProps

Props of the interactive form.

ListProps

Props for the CRUDUI list: the core-built view model + a layout selector.

OutlineProps

Props for the structure map.

OutlineViewProps

Props for the stateless structure map.