Interface ModalFormDataToggleOptionsBeta

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

Hierarchy

  • ModalFormDataToggleOptions

Properties

Properties

defaultValue?: boolean

Remarks

The default value for the toggle.

tooltip?: string | RawMessage

Remarks

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