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.
33 lines
460 B
33 lines
460 B
7 years ago
|
# bi.display_tree
|
||
|
|
||
|
### 树展示控件
|
||
|
|
||
|
{% method %}
|
||
|
[source](https://jsfiddle.net/fineui/cfL6fpa1/)
|
||
|
|
||
|
{% common %}
|
||
|
```javascript
|
||
|
var tree = BI.createWidget({
|
||
|
type: "bi.display_tree",
|
||
|
element: 'body',
|
||
|
});
|
||
|
|
||
|
tree.initTree({
|
||
|
id: 1,
|
||
|
text: '',
|
||
|
open: true,
|
||
|
});
|
||
|
```
|
||
|
|
||
|
{% endmethod %}
|
||
|
|
||
|
|
||
|
### 方法
|
||
|
|
||
|
| 方法名 | 说明 | 参数 |
|
||
|
| -------- | ------ | ---- |
|
||
|
| initTree | 加载tree结构 | node: 节点数组 settings: 配置项 |
|
||
|
|
||
|
------
|
||
|
|