fineui是帆软报表和BI产品线所使用的前端框架。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

812 B

bi.single_slider

数值滑块

{% method %} source

{% common %}

var singleSlider = BI.createWidget({
    type: "bi.single_slider",
    element: "body",
    width: 200,
    height: 50,
    cls: "demo-slider"
});

singleSlider.setMinAndMax({
    min: 10,
    max: 100
});
singleSlider.setValue(30);
singleSlider.populate();

{% endmethod %}

##参数

参数 说明 类型 默认值

方法

方法名 说明 参数
setMinAndMax 设置最大值最小值 {min: number, max: number}
getValue 获得当前值
setValue 设置当前值 value
populate 加载设置后的控件