extjs 3.4中的窗体面板内部布局窗口

问题描述:

任何人都可以帮助我在extjs 3.4中的布局窗口内创建窗体。 like this?我尝试使用Ext.Formpanel,但它显示错误。extjs 3.4中的窗体面板内部布局窗口

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文件。我需要在“电影信息表单”中创建一个表单。

+0

显示什么错误? – MarthyM

+0

SyntaxError:missing:在属性ID之后var simple = new Ext.FormPanel( –

+0

)那么,你可能在你的代码的某处丢失了':'或者有另一个语法错误。 – MarthyM

我已经解决了你的错误码。请检查&的回复。 https://fiddle.sencha.com/#view/editor&fiddle/2750

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

+0

请详细说明。你做了什么?有什么不同? – MarthyM

+0

她将这个参数作为参数传递给show(),因为这是浏览器的窗口对象,所以我将其删除。我删除了它,否则代码很好,只是添加了很少的标签。 – Tejas

+0

请编辑您的答案,但没有提供足够的解决方案信息。 – MarthyM