For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /server-ui/interfaces/ModalFormDataSliderOptions.md.

Interface: ModalFormDataSliderOptions

Beta

传递给 @minecraft/Server-ui.ModalFormData.slider 的接口,为滑块的创建提供额外的选项。

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

Properties

defaultValue?

optional defaultValue?: number

Beta

Remarks

滑块的默认值。

The default value for the slider.


tooltip?

optional tooltip?: any

Beta

Remarks

将显示一个感叹号图标,当悬停在该图标上时会显示工具提示。

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


valueStep?

optional valueStep?: number

Beta

Remarks

定义滑块移动时生成值的增量。如果未提供此值,则为 1

Defines the increment of values that the slider generates when moved. It will be '1' in case of not providing this.