+ -
当前位置:首页 → 问答吧 → EasyUI Tree 定位

EasyUI Tree 定位

时间:2011-08-30

来源:互联网

EasyUI Tree 能根据一个传入的id自动定位到该节点并自动打开到该节点吗?假设Tree默认不打开的,checkbox: false的。

作者: rotary_1002   发布时间: 2011-08-30

可以。像这样的 "id":3,
"text":"Folder2",
"state":"open",
"children":[{
"id":4,
"text":"File3",
"attributes":{
"p1":"value1",
"p2":"value2"
},
"checked":true,
"iconCls":"icon-reload"
},{
"id": 8,
"text":"Async Folder",
"state":"closed"
}]

假设你的id是3,你把state设为open,那它后面的子树就会打开着的

作者: jike316   发布时间: 2011-08-30