@minecraft
    正在准备搜索索引...

    接口 ModalFormDataTextFieldOptions预览版

    An interface that is passed into @minecraft/Server-ui.ModalFormData.textField to provide additional options for the textfield creation.

    interface ModalFormDataTextFieldOptions {
        defaultValue?: string;
        tooltip?: string | RawMessage;
    }
    索引

    属性

    defaultValue?: string

    The default value for the textfield.

    tooltip?: string | RawMessage

    It will show an exclamation icon that will display a tooltip if it is hovered.