Edit

Share via


ModalFormDataToggleOptions Interface

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

Properties

defaultValue

defaultValue?: boolean;

The default value for the toggle.

Type: boolean

tooltip

tooltip?: minecraftserver.RawMessage | string;

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

Type: @minecraft/server.RawMessage | string