Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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