middag-react
    Preparing search index...

    Interface EditablePanelDescriptor

    EditablePanelDescriptor — the form a panel edits. Mirrors the FormPanel block payload (schema + values + submit metadata) so the panel reuses the same FormField router and Zod schema builder the form_panel block uses.

    interface EditablePanelDescriptor {
        cancelLabel?: string;
        schema: FormSchemaNode[];
        submitLabel?: string;
        subtitle?: string;
        title: string;
        values?: Record<string, unknown>;
    }
    Index
    cancelLabel?: string

    Cancel button label; falls back to the engine default.

    schema: FormSchemaNode[]

    Form schema tree — fields, sections, groups, headers (FormPanel shape).

    submitLabel?: string

    Save button label; falls back to the engine default.

    subtitle?: string

    Small label above the title (e.g. "Form · enrolment-2026").

    title: string
    values?: Record<string, unknown>

    Initial field values, keyed by field key.