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

    接口 SliderOptions实验性

    The options for including a slider in CustomForm.

    interface SliderOptions {
        description?:
            | string
            | Observable<string>
            | UIRawMessage
            | Observable<UIRawMessage>;
        disabled?: boolean | Observable<boolean>;
        step?: number | Observable<number>;
        visible?: boolean | Observable<boolean>;
    }
    索引

    属性

    description?:
        | string
        | Observable<string>
        | UIRawMessage
        | Observable<UIRawMessage>

    The description of the slider, shown in the UI.

    disabled?: boolean | Observable<boolean>

    Whether or not this slider is disabled.

    step?: number | Observable<number>

    The step size of the slider. For example, if this is 2 and the min is 0 and the max is 10, the only selectable values will be 0, 2, 4, 6, 8, 10.

    visible?: boolean | Observable<boolean>

    Whether or not this slider is visible.