Skip to content

@minecraft/server-ui


@minecraft/server-ui / ModalFormDataDropdownOptions

Interface: ModalFormDataDropdownOptions

Defined in: @minecraft/server-ui/index.d.ts:1631

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

Properties

defaultValueIndex?

optional defaultValueIndex?: number

Defined in: @minecraft/server-ui/index.d.ts:1638

Remarks

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


tooltip?

optional tooltip?: string | RawMessage

Defined in: @minecraft/server-ui/index.d.ts:1645

Remarks

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