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
Forms extjs 3.4中布局窗口内的表单面板_Forms_Extjs_Layout_Extjs3 - Fatal编程技术网

Forms extjs 3.4中布局窗口内的表单面板

Forms extjs 3.4中布局窗口内的表单面板,forms,extjs,layout,extjs3,Forms,Extjs,Layout,Extjs3,有人能帮我在ExtJS3.4的布局窗口中创建表单吗?我尝试使用Ext.Formpanel,但显示错误 Ext.onReady(function() { // tabs for the center var tabs = new Ext.TabPanel({ region: 'center', margins: '3 3 3 0', activeTab: 0, defaults: { auto

有人能帮我在ExtJS3.4的布局窗口中创建表单吗?我尝试使用
Ext.Formpanel
,但显示错误

Ext.onReady(function() {
    // tabs for the center
    var tabs = new Ext.TabPanel({
        region: 'center',
        margins: '3 3 3 0', 
        activeTab: 0,
        defaults: {
            autoScroll: true
        },
        items: [
            {
                title: 'Movie Grid',
            },
            {
                title: 'Movie Description',
            },
            {
                title: 'Nested layout',
            },
            {
                title: 'The bomb',
            }
        ]
    });

    // Panel for the west
    var nav = new Ext.Panel({
        title: 'Movie Information Form',
        region: 'west',
        split: true,
        width: 200,
        collapsible: true,
        margins: '3 0 3 3',
        cmargins: '3 3 3 3',
    });

    var win = new Ext.Window({
        title: 'Button',
        closable: true,
        width: 600,
        height: 350,
        //border: false,
        plain: true,
        layout: 'border',
        items: [
            nav,
            tabs
        ]
    });

    win.show(this);
});

这是用于创建布局窗口的js文件。我需要在“电影信息表单”中创建一个表单

我已经解决了您代码中的错误。请检查并回复。


我已经删除了传递给窗口的show()的这个

它显示了什么错误?语法错误:缺少:在属性id var simple=new Ext.FormPanel之后(嗯,您的代码中可能缺少一个
,或者有另一个语法错误。请详细说明。您做了什么?有什么不同?她将此作为参数传递给show()),它正在崩溃,因为这是浏览器的窗口对象。我删除了它,其他代码很好,只是添加了一些标签。请编辑您的答案。它没有提供有关解决方案的足够信息。请准确地告诉我您想要什么信息。我不明白为什么在我对这个问题提供了足够清晰的说明后,您还要深入研究这个问题回答?现在已经足够了。“我已经解决了你的错误”并不是一个足够的答案,因为它没有提供关于解决方案的实际信息。如果你只发布一个到fiddle的链接,所有的源代码都是非现场的,将来可能会被删除。这就是为什么你应该始终将相关代码直接发布到你的问题或答案中的原因。也是在fiddl中e您必须搜索,与原始代码有什么区别。