Ext.onReady(function(){
//构建树形面板的对象
var tp = new Ext.tree.TreePanel({
region:'west',
collapsible:true, //可以让树形面板收缩的
title:'TreePanel',
width:200,
autoScroll:true,
split:true, //可以把树形面板拉宽或接窄的
useArrows:true,//可以让ROOT文件夹旁边有个三角,可以展开和缩起
enableDD:true, //可以把叶子节点拖动,换位
// bodyCfg:{cls:'tree_panel_bg'}, //设置树形面板的背景色的
root:new Ext.tree.AsyncTreeNode({
expanded:true,
id:'root',
text:'ROOT',
children:[{
text:'moto',
leaf:true
},{
text:'cdma',
leaf:true
},{
text:'core',
leaf:true
}]
}),
//构建树形面板的对象
var tp = new Ext.tree.TreePanel({
region:'west',
collapsible:true, //可以让树形面板收缩的
title:'TreePanel',
width:200,
autoScroll:true,
split:true, //可以把树形面板拉宽或接窄的
useArrows:true,//可以让ROOT文件夹旁边有个三角,可以展开和缩起
enableDD:true, //可以把叶子节点拖动,换位
// bodyCfg:{cls:'tree_panel_bg'}, //设置树形面板的背景色的
root:new Ext.tree.AsyncTreeNode({
expanded:true,
id:'root',
text:'ROOT',
children:[{
text:'moto',
leaf:true
},{
text:'cdma',
leaf:true
},{
text:'core',
leaf:true
}]
}),