Javascript ExtJS视口生成空白页

Javascript ExtJS视口生成空白页,javascript,extjs,Javascript,Extjs,工作完美。问题是如何在父视图中插入组件。是否创建实例并附加它,或在视图中使用“xtype”链接组件?提供更多代码,我们将看到。问题来自我的控制器,我将发布它 Ext.define('rgpd.view.Viewport', { extend: 'Ext.container.Viewport', layout: 'border', items: [{ region: 'north', html: '<h1 class="x-panel-


工作完美。问题是如何在父视图中插入组件。是否创建实例并附加它,或在视图中使用“xtype”链接组件?提供更多代码,我们将看到。

问题来自我的控制器,我将发布它
Ext.define('rgpd.view.Viewport', {
    extend: 'Ext.container.Viewport',
    layout: 'border',
    items: [{
        region: 'north',
        html: '<h1 class="x-panel-header">Page Title</h1>',
        border: false,
        margin: '0 0 5 0'
    }, {
        region: 'west',
        collapsible: true,
        title: 'Navigation',
        width: 150
        // could use a TreePanel or AccordionLayout for navigational items
    }, {
        region: 'south',
        title: 'South Panel',
        collapsible: true,
        html: 'Information goes here',
        split: true,
        height: 100,
        minHeight: 100
    }, {
        region: 'east',
        title: 'East Panel',
        collapsible: true,
        split: true,
        width: 150
    }, {
        region: 'center',
        xtype: 'tabpanel', // TabPanel itself has no title
        activeTab: 0,      // First tab active by default
        items: {
            title: 'Default Tab',
            html: 'The first tab\'s content. Others may be added dynamically'
        }
    }]
});
Ext.define('rgpd.controller.cMain', {
    extend: 'Ext.app.Controller',
    models: [
        'mExemple',
        'mCorpsMetier',
        'mUtilisateur'
    ],
    stores: [
        'sExemple',
        'sCorpsMetier',
        'sUtilisateur'
    ],
    views: [
        'Exemple.View',
        'CorpsMetier.View'
    ],
    init: function() {
        this.control({
        });
    },
    onLaunch: function() {
    },
});