PDA

View Full Version : FieldLabel next to a column layout?



perler
15 Aug 2008, 8:27 AM
Hi,

I have this snippet of code:


{
layout:"form",
fieldLabel:"column label",
items:[{
layout:"column",
items:[{
layout:"form",
items:[{
xtype:"textfield",
fieldLabel:"field label",
layout:"form"
}]
}]
}]
}

The "column label" is not shown next to the column layout. Is there a way to have a fieldLabel next to a column layout?

perler
17 Aug 2008, 3:14 AM
I kind of fixed it. But it's not a good solution I guess:


{
layout:"form",
fieldLabel:"column label",
items:[{
layout:"column",
items:[{
layout:"form",
items:[{
xtype:"textfield",
fieldLabel:"column label",
hidden: true,
layout:"form"
},{
xtype:"textfield",
fieldLabel:"field label",
layout:"form"
}]
}]
}]
}