CRUDUI

Home > @polyspec/crudui-generator-vue

crudui-generator-vue package

Functions

Function

Description

controlsVNode(controls)

One control group of data-crudui-action buttons.

dataVNode(data, messages)

Current data markup, rendered directly from the data.

Detail(vm)

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

List(vm, layout)

Build the .crudui-list envelope vnode around a ListViewModel: the description, the actions toolbar, the table/card body (or the .crudui-list__empty message), and the pagination chrome. Pure presentational vnode tree — no evaluation, no DB, read-only.

nodeVNode(vm, errors)

Build the vnode for one node of the recursive form grammar; errors holds the node errors.

outlineVNode(state, messages, root)

Structure map markup for evaluated nodes returned by bindForm.

renderDetail(detailSpec, record, options)

Compose a detail specification, evaluate one record and render read-only HTML.

renderForm(form, options)

Render the current form instance as the complete form (form-runtime.md, "Complete form").

renderList(listSpec, rows, options)

Compose a list specification, evaluate supplied rows and render list HTML. Throws ComposeLoadError when a composition reference cannot be resolved.

Widget(w)

Render one widget model as a real container vnode. Returns null for the root-raw layouts (bare/host-script/button/choices/search) — the node renderer renders those via widgetRootRaw in the node body. Returns the unsupported marker as a real vnode.

Interfaces

Interface

Description

RenderListOptions

Options for a CRUDUI list SSR render.

Variables

Variable

Description

DataView_2

Current submission data of a form instance.

Form

The interactive adapter over a shared, data-independent form template.

Outline

Structure map of a form instance with its form controls.

Type Aliases

Type Alias

Description

ListLayout

Render mode: a default <table> or a card grid.

NodeErrors

Error texts of the nodes that have errors (form-runtime.md, "Complete form").

RenderDetailOptions

Options for a CRUDUI detail SSR render.