An interface that is passed into @minecraft/Server-ui.ModalFormData.toggle to provide additional options for the toggle creation.
export interface ModalFormDataToggleOptions { defaultValue?: boolean; tooltip?: minecraftserver.RawMessage | string;} Copy
export interface ModalFormDataToggleOptions { defaultValue?: boolean; tooltip?: minecraftserver.RawMessage | string;}
Optional
The default value for the toggle.
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.toggle to provide additional options for the toggle creation.
Source