87,909
社区成员
发帖
与我相关
我的任务
分享
var store = Ext.create('Ext.data.TreeStore', {
root: {
expanded: true,
text:"",
user:"",
status:"",
children: [
{ text:"detention", leaf: true },
{ text:"homework", expanded: true,
children: [
{ text:"book report", leaf: true },
{ text:"alegrbra", leaf: true}
]
},
{ text: "buy lottery tickets", leaf:true }
]
}
});
Ext.create('Ext.tree.Panel', {
title: 'Simple Tree',
width: 200,
height: 150,
store: store,
rootVisible: false,
renderTo: Ext.getBody()
});