CRUDUI

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

FormTemplate interface

JSON-serializable, immutable form structure. Safe to share between records.

Signature:

export interface FormTemplate 

Properties

Property

Modifiers

Type

Description

action?

readonly

Readonly<Record<string, unknown>>

(Optional) Submission target declared by the spec, kept unchanged in the template.

buttons

readonly

readonly Readonly<Record<string, unknown>>[]

Form buttons in declaration order; one submit button when the spec declares none.

description?

readonly

unknown

(Optional) Root description content as declared by the spec, translated when the form is rendered.

fields

readonly

readonly FormFieldTemplate[]

Top-level field definitions.

keyPrefix?

readonly

string

(Optional) Optional root prefix for input names.

kind

readonly

'crudui/form-template'

Template format identifier.