• 转帖01


    {
                region: 'west',
                collapsible:
    true,
                title:
    '导航菜单',
                xtype:
    'treepanel',
               
    200,
                autoScroll:
    true,
                split:
    true,
                loader:
    new Ext.tree.TreeLoader({dataUrl:'tree.aspx'}),
                root: {
                    nodeType:
    'async',
                    text :
    'root',
                    draggable :
    false,
                    id :
    '0'
                },
                rootVisible :
    false,
                listeners: {
                    
    'click':function(node, event) {   
                     event.stopEvent();   
                    
    var n = Ext.getCmp('tab').getComponent(node.id);   
                    
    if (!n&&node.attributes.href!=null) {
                        n
    = Ext.getCmp('tab').add({
                          
    'id':node.id,
                          
    'title':node.text,
                           closable:
    true,
                           autoLoad:{url:node.attributes.href, scripts:
    true}
                        });   
                     }   
                     Ext.getCmp(
    'tab').setActiveTab(n);
                  }   
                }
            }



  • 相关阅读:
    scott登录查询常用语句
    Oracle服务端及客户端安装
    SVN简单使用
    dos命令--查询进程
    第二周学习总结
    第一周学习总结
    虚拟机安装教程及网络连接方式的解释
    两天学习总结
    方差
    thinkphp 总结 转
  • 原文地址:https://www.cnblogs.com/umlzhang/p/2229656.html
Copyright © 2020-2023  润新知