blessed-components - v1.20.0
    Preparing search index...

    Interface RenderFormFieldOptions

    Options accepted by renderFormField.

    interface RenderFormFieldOptions {
        control: string;
        error?: string;
        hint?: string;
        label: string;
        required?: boolean;
        characters?: FormFieldCharacters;
        height?: number;
        width: number;
    }
    Index

    Properties

    control: string

    Rendered control content, usually from another component renderer.

    error?: string

    Error text. When present it takes precedence over hint.

    hint?: string

    Hint text shown when no error is present.

    label: string

    Form field label.

    required?: boolean

    Whether the label should include a required indicator.

    characters?: FormFieldCharacters

    Character tokens used for hint and error rows.

    height?: number

    Maximum rendered height.

    width: number

    Maximum terminal-cell width of each line.