@minecraft/server-ui
    Preparing search index...

    Interface ModalFormDataSliderOptionsBeta

    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;
    }
    Index

    Properties

    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.