Skip to content

@minecraft/server-ui


@minecraft/server-ui / ModalFormDataTextFieldOptions

Interface: ModalFormDataTextFieldOptions

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

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

Properties

defaultValue?

optional defaultValue?: string | RawMessage

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

Remarks

The default value for the textfield.


tooltip?

optional tooltip?: string | RawMessage

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

Remarks

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