treePanel tabPanel

{
							title:'导航菜单',
							iconCls:'icon-nav',
							xtype : 'treepanel',
							border : false,
							containerScroll:true,
					        animate:true,
					        rootVisible :false,
							loader : new Ext.tree.TreeLoader({
								dataUrl:'js/tree-nav.json'
							}),
							root : {nodeType: 'async'},
							listeners:{
								'click':function(node,event){
									event.stopEvent();
									var n = tabs.getComponent(node.id);
									if(node.isLeaf()&& !n){
										tabs.add({
											id:node.id,
											title:node.text,
											closable:true
									}).show();
									}
								}
							}
						}

你可能感兴趣的:(json,ext)