SheetXL - v0.8.0-beta.9+sites.210.e2d420901
    Preparing search index...

    Interface UseInputFieldOptions

    interface UseInputFieldOptions {
        changeOn?: "done" | "live";
        disabled?: boolean;
        invalidKey?: string;
        onChange?: (value: string) => void;
        onChangeText?: (text: string) => void;
        onDone?: (value: string, args: EditDoneArgs) => void;
        onValidate?: (text: string) => void;
        value: string | null;
    }
    Index
    changeOn?: "done" | "live"

    'done' suppresses the live onChange notifications entirely (validation still runs, so the error state and the commit-channel value stay current) and makes Enter the field's own commit point. Default 'live'.

    disabled?: boolean

    Disabled: never engages, so no session, no commits.

    invalidKey?: string

    The error key used when a rejection carries no message of its own.

    onChange?: (value: string) => void

    Live change notification — fires on every VALID text state. A PREVIEW channel: hosts that mutate the model per change (renaming a table) should act on onDone instead.

    onChangeText?: (text: string) => void

    The raw TEXT channel: every display-text change the user causes — INVALID states included, and regardless of changeOn. For hosts that persist authored text and validate it later; onChange would leave them holding the last VALID text while the field shows something else. An outside value change does not fire it.

    onDone?: (value: string, args: EditDoneArgs) => void

    The COMMIT channel: fires once with the final text when the edit finishes — a done key (Enter/Tab/Escape), the adornment ✓/✗, InputFieldApi.commit/.cancel(), or blur. args.reason distinguishes accept from cancel (a cancel delivers the reverted session baseline). Not fired on an accept while the text is invalid — the error stays shown instead.

    onValidate?: (text: string) => void

    Validate the text — THROW to reject it. The thrown message (an SDK validation error carries a message key) becomes the field's error, which blocks every accept path until it clears.

    value: string | null

    The committed value. The display text re-derives whenever it changes.