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.
66 lines
1.0 KiB
66 lines
1.0 KiB
7 years ago
|
# bi.text_value_down_list_combo
|
||
|
|
||
7 years ago
|
## 有二级下拉菜单的combo 基类[BI.Widget](/core/widget.md)
|
||
7 years ago
|
|
||
|
{% method %}
|
||
7 years ago
|
[source](https://jsfiddle.net/fineui/xtxmfgx1/)
|
||
7 years ago
|
|
||
|
{% common %}
|
||
|
```javascript
|
||
|
|
||
7 years ago
|
BI.createWidget({
|
||
|
type: "bi.text_value_down_list_combo",
|
||
|
element: "#wrapper",
|
||
|
text: "text",
|
||
|
items: [
|
||
|
[{
|
||
|
el: {
|
||
|
text: "1",
|
||
|
value: 1
|
||
|
},
|
||
|
children: [{
|
||
|
text: "11",
|
||
|
value: 11
|
||
|
}]
|
||
|
}],
|
||
|
[{
|
||
|
text: "2",
|
||
|
value: 2
|
||
|
}, {
|
||
|
text: "3",
|
||
|
value: 3
|
||
|
}]
|
||
|
]
|
||
|
});
|
||
|
|
||
7 years ago
|
|
||
|
|
||
|
```
|
||
|
|
||
|
{% endmethod %}
|
||
|
|
||
|
## API
|
||
|
##### 基础属性
|
||
|
| 参数 | 说明 | 类型 | 可选值 | 默认值
|
||
|
| :------ |:------------- | :-----| :----|:----
|
||
|
| height | 高度 | number | — | 30
|
||
|
| text | 文本内容 | string | — | " " |
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
## 对外方法
|
||
|
| 名称 | 说明 | 回调参数
|
||
|
| :------ |:------------- | :-----
|
||
|
| setValue| 设置value值|—|
|
||
|
| getValue| 获取value值|—|
|
||
|
| populate | 刷新列表 | items |
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
---
|
||
|
|
||
7 years ago
|
|