CRUDUI

Home > @polyspec/crudui-generator-core > BuildState

BuildState interface

Per-build state threaded through the recursive tree builder.

Signature:

export interface BuildState 

Properties

Property

Modifiers

Type

Description

collapsed?

ReadonlySet<string>

(Optional) Row paths rendered collapsed.

data

Record<string, unknown>

The root form data (the expr engine's formData).

idPrefix

string

Stable DOM identifier prefix.

keyPrefix?

string

(Optional) Optional name/id prefix.

layout?

'inline'

(Optional) Layout of the field nodes from the enclosing groups (docs/spec/schema.md, Layout).

messages

FormMessages

Interface text (active language).

rowNumbers?

readonly number[]

(Optional) One-based positions of the enclosing repeated rows.

rowSegments?

readonly number[]

(Optional) Repeated path segment positions, independent of their key encoding.

stickyDepth?

number

(Optional) Number of enclosing rows with a sticky header.

t

Translate

Content translator (active language).

unsupported

UnsupportedMode

Unsupported-type handling (default 'throw' — never silent).