小编vit*_*sai的帖子

在Ext.Viewport的anchorlayout面板中折叠嵌套的borderlayout面板

我开始学习Ext并坚持这样的问题.我有一个带代码的视口

Ext.define('WIMM.view.Viewport', {
extend: 'Ext.container.Viewport',
autoScroll: true,
layout: 'anchor',
items: [
    {
        border: false,
        title: 'Header',
        layout: 'fit',
        xtype: 'container',
        html: 'Header block. We\'ll try to do this again'
    },{
        layout: 'border',
        items: [
            {
                collapsible: true,
                width: 240,
                title: 'Aside Column',
                region:'west',
                layout: 'fit',
                html: 'Aside widgets (news, balance, budget, goals) would be here.'
            },{
                title: 'Main Block',
                border: false,
                region:'center',
                layout: 'fit',
                html: 'Main block were tabPanel would be nested in.'
            }
        ]
    },{
        title: 'footer',
        xtype: 'container', …
Run Code Online (Sandbox Code Playgroud)

nested extjs collapse border-layout extjs4

5
推荐指数
1
解决办法
1080
查看次数

标签 统计

border-layout ×1

collapse ×1

extjs ×1

extjs4 ×1

nested ×1