featherbit UI
    Preparing search index...

    Interface TemplateEditorModalProps

    Props for TemplateEditorModal.

    interface TemplateEditorModalProps {
        availability: Availability;
        legacyDollar: boolean;
        onApply: (v: string) => void;
        onClose: () => void;
        onOpenLegend: () => void;
        open: boolean;
        suggestions: Suggestion[];
        templateMode: "full" | "env-only";
        value: string;
    }
    Index
    availability: Availability

    Why live values may be missing from suggestions; drives the footer message.

    legacyDollar: boolean

    Same meaning as VarInput's prop of the same name.

    onApply: (v: string) => void

    Apply button — called with the draft; caller is expected to also close the modal.

    onClose: () => void

    Esc, backdrop click, or Cancel — discards the draft, no onApply.

    onOpenLegend: () => void

    Opens the full context-vars legend/reference dialog.

    open: boolean

    Whether the modal is shown.

    suggestions: Suggestion[]

    Candidate rows; same list VarInput was given for this field.

    templateMode: "full" | "env-only"

    Same meaning as VarInput's prop of the same name.

    value: string

    Field's current value; the draft re-initializes from this every time open flips to true.