zoukankan      html  css  js  c++  java
  • 转帖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);
                  }   
                }
            }



  • 相关阅读:
    flutter setInitialRoute: 不生效
    mac os Catalina beta andriod studio crash
    Flutter 集成到现有iOS工程
    理解git
    selenium(一)--selenium 家族
    异常(一)
    java设计模式--创建型模式(一)
    理解JAVA虚拟机(下)
    mockito框架
    三次握手与四次释放
  • 原文地址:https://www.cnblogs.com/umlzhang/p/2229656.html
Copyright © 2011-2022 走看看