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

    接口 ModalFormDataDropdownOptions预览版

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

    interface ModalFormDataDropdownOptions {
        defaultValueIndex?: number;
        tooltip?: string | RawMessage;
    }
    索引

    属性

    defaultValueIndex?: number

    The default selected item index. It will be zero in case of not setting this value.

    tooltip?: string | RawMessage

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