@heybox/hb-sdk API Reference - v0.9.5
    正在准备搜索索引...

    接口 TextFieldOptions

    textField 节点的可选项。

    interface TextFieldOptions {
        clearable?: boolean;
        disabled?: boolean;
        fallback?: ViewNode;
        maxLength?: number;
        placeholder?: string;
        resetToken?: string;
        submitAction?: {
            commandId: string;
            input?: JSONType;
            inputFrom?: Record<string, string>;
        };
        value?: string;
    }
    索引

    属性

    clearable?: boolean

    是否提供清空按钮。

    disabled?: boolean

    当前不可编辑。

    fallback?: ViewNode

    旧宿主不认识 textField 时渲染的降级内容。

    maxLength?: number

    最大字符数。

    placeholder?: string

    输入提示。

    resetToken?: string

    变化时丢弃宿主草稿并重新取用 value。

    submitAction?: {
        commandId: string;
        input?: JSONType;
        inputFrom?: Record<string, string>;
    }

    在字段内按下回车时回送的 Command。

    value?: string

    Runtime 提供的初始值。