Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/extjs/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Extjs 将Formpanel渲染为选项卡面板_Extjs_Tabpanel_Formpanel - Fatal编程技术网

Extjs 将Formpanel渲染为选项卡面板

Extjs 将Formpanel渲染为选项卡面板,extjs,tabpanel,formpanel,Extjs,Tabpanel,Formpanel,我有两个带有不同ExtJS FormPanel的.js文件,我将它们重新放入HTML文件中的一个DIV中: myPanel.render( 'myDiv' ); 我想将它们添加/渲染到选项卡面板 有没有一个简单的方法可以做到这一点? 如果是,怎么做 谢谢,Stef像这样吗 Ext.define('MyApp.view.MyTabPanel', { extend: 'Ext.tab.Panel', alias: 'widget.MyTabPanel', itemId: '

我有两个带有不同ExtJS FormPanel的.js文件,我将它们重新放入HTML文件中的一个DIV中:

myPanel.render( 'myDiv' );
我想将它们添加/渲染到选项卡面板

有没有一个简单的方法可以做到这一点? 如果是,怎么做

谢谢,Stef像这样吗

Ext.define('MyApp.view.MyTabPanel', {
    extend: 'Ext.tab.Panel',
    alias: 'widget.MyTabPanel',
    itemId: 'MyTabPanel',
    items: [
        {
            xtype: 'panel',
            title: 'Tab panel with the form',
            items: [myPanel] //the form panel
        }
    ]
});

//...

Ext.widget('MyTabPanel', { renderTo: 'myDiv'});