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.
|
|
|
# bi.button_tree
|
|
|
|
|
|
|
|
## 一组具有相同属性的元素集合,与button_group的区别是可以处理树状结构,基类[BI.ButtonGroup](/core/abstract/button_group.md)
|
|
|
|
|
|
|
|
{% method %}
|
|
|
|
[source](https://jsfiddle.net/fineui/pgwpw4n9/)
|
|
|
|
|
|
|
|
{% common %}
|
|
|
|
```javascript
|
|
|
|
|
|
|
|
BI.createWidget({
|
|
|
|
element: "#wrapper",
|
|
|
|
type: "bi.button_tree",
|
|
|
|
chooseType: BI.ButtonGroup.CHOOSE_TYPE_MULTI,
|
|
|
|
layouts: [{
|
|
|
|
type: "bi.vertical"
|
|
|
|
}],
|
|
|
|
items: [{
|
|
|
|
type: "bi.label",
|
|
|
|
text: "0",
|
|
|
|
value: "label1",
|
|
|
|
height:50,
|
|
|
|
vgap:10
|
|
|
|
}]
|
|
|
|
})
|
|
|
|
```
|
|
|
|
|
|
|
|
{% endmethod %}
|
|
|
|
|
|
|
|
## 对外方法
|
|
|
|
| 名称 | 说明 | 回调参数
|
|
|
|
| :------ |:------------- | :-----
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|