An interface that is passed into @minecraft/Server-ui.ModalFormData.textField to provide additional options for the textfield creation.
export interface ModalFormDataTextFieldOptions { defaultValue?: string; tooltip?: minecraftserver.RawMessage | string;} Copy
export interface ModalFormDataTextFieldOptions { defaultValue?: string; tooltip?: minecraftserver.RawMessage | string;}
Optional
The default value for the textfield.
It will show an exclamation icon that will display a tooltip if it is hovered.
An interface that is passed into @minecraft/Server-ui.ModalFormData.textField to provide additional options for the textfield creation.
Source