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.

49 lines
812 B

# bi.single_slider
7 years ago
## 数值滑块
7 years ago
{% method %}
[source](https://jsfiddle.net/fineui/k6svamdz/)
{% common %}
```javascript
var singleSlider = BI.createWidget({
type: "bi.single_slider",
element: "body",
width: 200,
height: 50,
cls: "demo-slider"
7 years ago
});
singleSlider.setMinAndMax({
min: 10,
max: 100
});
singleSlider.setValue(30);
singleSlider.populate();
7 years ago
```
{% endmethod %}
##参数
| 参数 | 说明 | 类型 | 默认值 |
| ---- | ---- | ------ | ---- |
## 方法
| 方法名 | 说明 | 参数 |
| -------- | ---- | ----- |
| setMinAndMax | 设置最大值最小值 | {min: number, max: number} |
7 years ago
| getValue | 获得当前值 | — |
| setValue | 设置当前值 | value |
| populate | 加载设置后的控件 | — |
7 years ago
------