Formwright
    Preparing search index...

    Interface FieldArgs<M, P, C, S>

    A field's args, but form: what f.Field takes. C is its control and S its @storeKey, both inferred. One object type, with the control's say in each arg's type: Glint can't infer a generic component's args through a conditional object type.

    interface FieldArgs<
        M extends object = object,
        P extends Path<M> = Path<M>,
        C = string | ControlComponent,
        S extends boolean = boolean,
    > {
        applyLabel?: string;
        cancelLabel?: string;
        control?: C;
        currency?: ArgOf<
            string extends P
                ? unknown
                : object extends M ? unknown : ValueAt<M, Dotted<P>>,
            C,
            S,
            "currency",
        >;
        disabled?: boolean;
        for: P & NeedsControl<P, C>;
        format?: (value: PathValue<M, P>) => string;
        hint?: string;
        label?: string;
        layout?: string | FieldLayout;
        locale?: ArgOf<
            string extends P
                ? unknown
                : object extends M ? unknown : ValueAt<M, Dotted<P>>,
            C,
            S,
            "locale",
        >;
        max?: ArgOf<
            string extends P
                ? unknown
                : object extends M ? unknown : ValueAt<M, Dotted<P>>,
            C,
            S,
            "max",
        >;
        maxLength?: ArgOf<
            string extends P
                ? unknown
                : object extends M ? unknown : ValueAt<M, Dotted<P>>,
            C,
            S,
            "maxLength",
        >;
        min?: ArgOf<
            string extends P
                ? unknown
                : object extends M ? unknown : ValueAt<M, Dotted<P>>,
            C,
            S,
            "min",
        >;
        optionKey?: ArgOf<
            string extends P
                ? unknown
                : object extends M ? unknown : ValueAt<M, Dotted<P>>,
            C,
            S,
            "optionKey",
        >;
        optionLabel?: ArgOf<
            string extends P
                ? unknown
                : object extends M ? unknown : ValueAt<M, Dotted<P>>,
            C,
            S,
            "optionLabel",
        >;
        options?: ArgOf<
            string extends P
                ? unknown
                : object extends M ? unknown : ValueAt<M, Dotted<P>>,
            C,
            S,
            "options",
        >;
        placeholder?: string;
        readonly?: boolean;
        requireConfirm?: boolean;
        required?: boolean;
        showCount?: ArgOf<
            string extends P
                ? unknown
                : object extends M ? unknown : ValueAt<M, Dotted<P>>,
            C,
            S,
            "showCount",
        >;
        step?: ArgOf<
            string extends P
                ? unknown
                : object extends M ? unknown : ValueAt<M, Dotted<P>>,
            C,
            S,
            "step",
        >;
        storeKey?: S & ArgOf<
            string extends P
                ? unknown
                : object extends M ? unknown : ValueAt<M, Dotted<P>>,
            C,
            S,
            "storeKey",
        >;
    }

    Type Parameters

    Index
    applyLabel?: string

    The apply button's accessible name (confirm and inline modes). Default "Apply".

    cancelLabel?: string

    The cancel button's accessible name (confirm and inline modes). Default "Cancel".

    control?: C

    A control name that fits the path (default "input"), or a component.

    currency?: ArgOf<
        string extends P
            ? unknown
            : object extends M ? unknown : ValueAt<M, Dotted<P>>,
        C,
        S,
        "currency",
    >

    For currency: an ISO 4217 code (default USD) and a locale (default the browser's).

    disabled?: boolean
    for: P & NeedsControl<P, C>

    The model path this field edits, e.g. "email" or "address.city"; checked against the form's model.

    format?: (value: PathValue<M, P>) => string

    Formats the value when shown (inline editing).

    hint?: string
    label?: string
    layout?: string | FieldLayout

    Override the form's

    for this field: a registered name or a component.

    locale?: ArgOf<
        string extends P
            ? unknown
            : object extends M ? unknown : ValueAt<M, Dotted<P>>,
        C,
        S,
        "locale",
    >
    max?: ArgOf<
        string extends P
            ? unknown
            : object extends M ? unknown : ValueAt<M, Dotted<P>>,
        C,
        S,
        "max",
    >
    maxLength?: ArgOf<
        string extends P
            ? unknown
            : object extends M ? unknown : ValueAt<M, Dotted<P>>,
        C,
        S,
        "maxLength",
    >

    For text inputs and textarea: a length cap, and whether to show a counter.

    min?: ArgOf<
        string extends P
            ? unknown
            : object extends M ? unknown : ValueAt<M, Dotted<P>>,
        C,
        S,
        "min",
    >

    Number/date bounds, or the most options a checkbox group may select.

    optionKey?: ArgOf<
        string extends P
            ? unknown
            : object extends M ? unknown : ValueAt<M, Dotted<P>>,
        C,
        S,
        "optionKey",
    >
    optionLabel?: ArgOf<
        string extends P
            ? unknown
            : object extends M ? unknown : ValueAt<M, Dotted<P>>,
        C,
        S,
        "optionLabel",
    >
    options?: ArgOf<
        string extends P
            ? unknown
            : object extends M ? unknown : ValueAt<M, Dotted<P>>,
        C,
        S,
        "options",
    >

    For choice controls: what to pick from; values the path holds, unless @storeKey.

    placeholder?: string
    readonly?: boolean
    requireConfirm?: boolean

    Override the form's

    for this field.

    required?: boolean
    showCount?: ArgOf<
        string extends P
            ? unknown
            : object extends M ? unknown : ValueAt<M, Dotted<P>>,
        C,
        S,
        "showCount",
    >
    step?: ArgOf<
        string extends P
            ? unknown
            : object extends M ? unknown : ValueAt<M, Dotted<P>>,
        C,
        S,
        "step",
    >
    storeKey?: S & ArgOf<
        string extends P
            ? unknown
            : object extends M ? unknown : ValueAt<M, Dotted<P>>,
        C,
        S,
        "storeKey",
    >

    Store the option's key instead of the option itself.