如何构建树 ins Sencha Architect ?我在网上找到的所有内容都与编辑在我的情况下只读的代码有关。我该怎么办?
请帮忙!我真的很感激,因为我一直很难搞清楚。
提前谢谢
答案 0 :(得分:2)
TreeStore
* TreePanel
*
fields: [{
name: 'text'
}],
//please note that you need to wrap the root config inside an object {}
root: {
expanded: true,
children: [
{ text: "detention", leaf: true },
{ text: "homework", expanded: true, children: [
{ text: "book report", leaf: true },
{ text: "algebra", leaf: true}
] },
{ text: "buy lottery tickets", leaf: true }
]
}
<强> EDIT1:强>
按此绿色图标可编辑根配置