PDA

View Full Version : Writing a form inside a window?



darkhorni
6 Sep 2012, 1:53 AM
Is this valid?

Ext.create('Ext.window.Window', {
xtype: 'form',
items: [name,surname]
});

redraid
6 Sep 2012, 1:58 AM
Not valid.


Ext.create('Ext.window.Window', {
layout: 'fit',
items: {
xtype: 'form',
items: [
{ xtype: 'textfield', name: 'name', fieldLabel: 'Name' },
{ xtype: 'textfield', name: 'surname', fieldLabel: 'Surname' }
]
}
});