PDA

View Full Version : FieldLabel in ext:TextField is useless unless we're using ext:FormLayout?



IvanJ
Nov 06, 2009, 8:33 PM
I'm trying to use markup to build a form that has multiple columns (ie State: [ ] Zip: [ ])

Am I able to accomplish something like that using "ext:FormLayout" ? I haven't figured out a way to.


If I'm using FieldPanel with a different Layout, however, the field labels don't show up.


It seems that the only time when "FieldLabel" attribute of the ext:TextField gets used is when we're using ext:FormLayout.


Is this true?


Thanks!

geoffrey.mcgill
Nov 06, 2009, 9:43 PM
It seems that the only time when "FieldLabel" attribute of the ext:TextField gets used is when we're using ext:FormLayout.

Is this true?


Yes. The FieldLabel is only rendered when the Field/Component is used within a FormLayout/FormPanel. See http://www.extjs.com/deploy/dev/docs/?class=Ext.Component&member=fieldLabel



Note: this config is only used when this Component is rendered by a Container which has been configured to use the FormLayout layout manager


Hope this helps.