PDA

View Full Version : individual labelWidth for form elements



ReBorn
18 Apr 2010, 11:17 PM
Hi everyone!

Is it possible to set labelWidth property for nested form elements, like textfields or combos, individually?
So far, as I understand the API, label Width can be set only for containers, such as forms, panels, fieldsets, etc.

I need label Width for element-level. Tryed to play with labelStyle, manually setting labelWidth in the element's constructor -- nothing helped :(.

Animal
18 Apr 2010, 11:58 PM
Yes, I can see it's a bit annoying not being able to do that. But you have to admit it would look weird.

ReBorn
19 Apr 2010, 12:05 AM
Not always.
For example, I'm playing with TableFormLayout here (http://www.extjs.com/forum/showthread.php?77606-3.0-Ext.ux.layout.TableFormLayout-table-layout-with-form-field-labels/page3&highlight=TableForm) and in large forms with large labels requested feature is really nececcary.
maybe, there is another way to achive that?

steffenk
19 Apr 2010, 12:44 AM
it works for me on element level. e.g. i set labelWidth: 150 one time at the beginning and for a DisplayField i set labelWidth: 1
(0 doesn't work)

squ3lch
28 Apr 2010, 5:21 AM
set labelWidth property for nested form elements, like textfields or combos, individually

This is needed whether anyone thinks it would "look weird" or not.