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 |
|---|---|---|---|
|
|
Readonly<Record<string, unknown>> |
(Optional) Submission target declared by the spec, kept unchanged in the template. | |
|
|
readonly Readonly<Record<string, unknown>>[] |
Form buttons in declaration order; one submit button when the spec declares none. | |
|
|
unknown |
(Optional) Root description content as declared by the spec, translated when the form is rendered. | |
|
|
readonly FormFieldTemplate[] |
Top-level field definitions. | |
|
|
string |
(Optional) Optional root prefix for input names. | |
|
|
'crudui/form-template' |
Template format identifier. |