zoukankan      html  css  js  c++  java
  • extjs3 tree 指定内容qtip


    <!DOCTYPE html>
    <html>
    <head>
    <meta charset="utf-8">
    <title></title>
    <link href="resources/css/ext-all.css" rel="stylesheet">
    <script src="jslib/ext-base.js"></script>
    <script src="jslib/ext-all.js"></script>
    </head>
    <body>
    <script>
    function init(){
    var tree = new Ext.tree.TreePanel({
    renderTo: Ext.getBody(),
    useArrows: true,
    autoScroll: true,
    animate: true,
    enableDD: true,
    containerScroll: true,
    border: false,
    title:'tree',
    root: {
    nodeType: 'async',
    text: 'Ext JS',
    draggable: false,
    id: 'source',
    children: [{
    text: 'Menu Option 1',
    leaf: true,
    id:1,
    code:'1001'
    }, {
    text: 'Menu Option 2',
    leaf: true,
    id:2,
    code:'1002'
    }, {
    text: 'Menu Option 3',
    leaf: true,
    id : 3,
    code:'1003'
    }]
    },
    listeners: {
    append: function (tree, parent, node, index ) {
    Ext.QuickTips.init();
    node.attributes.qtip=node.attributes.code;
    }
    }
    });
    tree.getRootNode().expand();
    }
    Ext.onReady(init);
    </script>
    </body>
    </html>
  • 相关阅读:
    ZOJ 3818 Pretty Poem
    HDU 4597 Play Game
    HDU 4497 GCD and LCM
    CSU 1335 高桥和低桥
    UVA 10791 Minimum Sum LCM
    CSU 1119 Collecting Coins
    CSU 1120 病毒
    UVA 12169 Disgruntled Judge
    HDU 1301 Jungle Roads
    POJ 1258 Agri-Net
  • 原文地址:https://www.cnblogs.com/a-long/p/7239074.html
Copyright © 2011-2022 走看看