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文件。我需要在“电影信息表单”中创建一个表单。
显示什么错误? – MarthyM
SyntaxError:missing:在属性ID之后var simple = new Ext.FormPanel( –
)那么,你可能在你的代码的某处丢失了':'或者有另一个语法错误。 – MarthyM