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

    接口 ModalFormDataToggleOptions预览版

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

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

    属性

    defaultValue?: boolean

    The default value for the toggle.

    tooltip?: string | RawMessage

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