日期:2014-05-16  浏览次数:20307 次

Extjs左侧的菜单导航
我要实现类似于这个效果:



我的代码是这样的(这是view层):
不用写代码,就写静态的就好了。
Ext.define("AM.view.menuView", {
    extend: 'Ext.panel.Panel',
    layout: 'accordion', //手风琴布局
    alias: 'widget.menuview',
    layoutConfig: {
        titleCollapse: false,
        animate: true,
        activeOnTop: true
    },
    items: [{
            xtype:'treepanel',
            title: '文章设置',
            rootVisible: true,
            displayField: 'text',
            store:'DeptStoreTree'//
    }, {
        title: '第二个应用程序',
        html: '<h1>面板2</h1>'
    }, {
        title: '第三个应用程序',
        html: '<h1>面板3</h1>'
    }]
});

各位英雄好汉多多回帖,谢谢了!
------解决方案--------------------
你这不是实现了吗 
手风琴布局,里面包含的是treepanel布局 不要显示 root   rootVisible: fasle,