PDA

View Full Version : create a form with a custom layout



t4deon
9 Aug 2012, 10:32 AM
I want to create a form with a custom layout. It should look like this:


myLabel: [myTextField]
myLabel: [TextField] some text [TextField]
myLabel: [TextField]

The first and last part are no problems but I hit on problems at the middle part.
I've tried this:


... class definition etc.
items: [{ xtype: 'textfield',label: 'firstField'},
{
items: [ { xtype: 'textfield', label: 'MyLabel' }, { xtype: 'textfield', label: 'some text' } ]
},
{
xtype: 'textfield',
label: 'lastField'
}
The result:


firstField: [myTextField]
myLabel: [TextField]
some text [TextField]
lastField: [TextField]

Any ideas how to solve this problem? I am very new to Sencha and have no idea how to do this...
Thanks.

t4deon

jerome76
9 Aug 2012, 12:02 PM
Are you looking for something like this?
http://www.sencha.com/forum/showthread.php?219848-Ext.tux.form.FieldContainer-Create-complex-form-fields

t4deon
10 Aug 2012, 12:50 AM
yes that's it! Thanks! :)