PDA

View Full Version : Custom Field Layout in FormLayout/Panel



danny.robinson
26 Mar 2009, 6:59 AM
Guys,

Any hints on how I can globally tweak the layout of fields within a form layput/panel. I want to reposition the error text to appear directly underneath the input field, rather than after it.

I'd prefer not to have to create my own FieldAdapter or extended Field classes, can I change a template somewhere, or did I miss the API to cause this simple change.

Thanks,

Dan

fother
26 Mar 2009, 7:39 AM
post code example

danny.robinson
26 Mar 2009, 7:47 AM
There isn't a code example, but if you want a layout example then I want to do the following:

FormLayout/Panel does this



Some Label: [TEXT_INPUT] error text
I want



Some Label: [TEXT_INPUT]
error text


It seems like a simple change to achieve, without extending all of the existing fields, or reimplementing a FormLayout equivilent.

fother
3 Apr 2009, 3:49 AM
you will need create a custom layout for do this.. and set message target.. http://extjs.com/deploy/gxtdocs/com/extjs/gxt/ui/client/widget/form/Field.html#setMessageTarget(java.lang.String)