@minecraft
    正在准备搜索索引...

    接口 ModalFormDataSliderOptions预览版

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

    interface ModalFormDataSliderOptions {
        defaultValue?: number;
        tooltip?: string | RawMessage;
        valueStep?: number;
    }
    索引

    属性

    defaultValue?: number

    The default value for the slider.

    tooltip?: string | RawMessage

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

    valueStep?: number

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