【发布时间】:2013-01-03 09:08:28
【问题描述】:
如何在 Sencha Architect 中构建树?我在网上找到的所有内容都与编辑在我的情况下是只读的代码有关。我该怎么办?
请帮忙!我真的很感激,因为我一直很难弄清楚。
提前谢谢你
【问题讨论】:
标签: extjs tree treenode sencha-architect
如何在 Sencha Architect 中构建树?我在网上找到的所有内容都与编辑在我的情况下是只读的代码有关。我该怎么办?
请帮忙!我真的很感激,因为我一直很难弄清楚。
提前谢谢你
【问题讨论】:
标签: extjs tree treenode sencha-architect
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 }
]
}
编辑1:
按此绿色图标可编辑根配置。
【讨论】: