extjs中,怎么样做到左边是tree菜单,右边是grid、form等面板,当点击菜单时,右边出现相应的面板。 extjs中,怎么样做到左边是tree菜单,右边是grid、form等面板,当点击菜单时,右边出现相应的面板。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 先panel布局 然后为tree添加node的click事件 没有例子啊 上网搜吧 ext.panel布局 border布局然后就搞了动作连接起来就OK了 var menuTree = new Ext.tree.TreePanel({ region:'west', title:'功能菜单', width:180, // minSize:150, // maxSize:200, // split:true, // autoScroll:true, // autoHeight:false, collapsible:true, // rootVisable:false, //不显示根节点 dataUrl: 'system/samlib/get-nodes.php', root: { nodeType: 'async', text: 'Ext JS', draggable:false, id:'source' }, listeners: { 'render': function(tp){ tp.getSelectionModel().on('selectionchange', function(tree, node){ if(node.isLeaf()){ alert(node.attributes+"|"+node.leaf+"|"+node.text+"|"+node.id); /* var tabWin = app.getModule('Spidermodel'); if(tabWin){ tabWin.launcher.handler.call(this.scope || this); } */ var n = contentPanelc 'id':node.id, 'title':node.text, closable:true, //通过html载入目标页 items: grid // html:'<iframe scrolling="auto" frameborder="0" width="100%" height="100%" src="system/samlib/get-nodes.php?s=m"></iframe>' }); contentPanel.setActiveTab(n); } }) } } }); 为什么我写的代码为什么不显示grid? 简单的javascript问题,求大神解答 新手求解~~速度~~正则表达式哪错了 .NET 和PHP站之间的那点事。 javascript加载xml 关于firefox中给document.body绑定事件的问题 javascript 控制两个表格的问题, 翻页 求一款js多媒体浏览插件 关parent的问题 如何用javascript实现网页的保存功能? 谁有好的 验证 脚本 提示要是气泡式的 open flash chart 一个页面展示多个chart的问题。
region:'west',
title:'功能菜单',
width:180,
// minSize:150,
// maxSize:200,
// split:true,
// autoScroll:true,
// autoHeight:false,
collapsible:true,
// rootVisable:false, //不显示根节点
dataUrl: 'system/samlib/get-nodes.php',
root: {
nodeType: 'async',
text: 'Ext JS',
draggable:false,
id:'source'
},
listeners: {
'render': function(tp){
tp.getSelectionModel().on('selectionchange', function(tree, node){
if(node.isLeaf()){
alert(node.attributes+"|"+node.leaf+"|"+node.text+"|"+node.id);
/* var tabWin = app.getModule('Spidermodel');
if(tabWin){
tabWin.launcher.handler.call(this.scope || this);
}
*/
var n = contentPanelc
'id':node.id,
'title':node.text,
closable:true, //通过html载入目标页
items: grid
// html:'<iframe scrolling="auto" frameborder="0" width="100%" height="100%" src="system/samlib/get-nodes.php?s=m"></iframe>'
});
contentPanel.setActiveTab(n);
} })
}
}
});
为什么我写的代码为什么不显示grid?