PDA

View Full Version : Is there a way to display form fields inline?



chaddjohnson
26 May 2010, 8:47 AM
I am looking for a way to display a checkbox inline with a combo box. So, the combo box would be on the left, and the checkbox would be right beside it, on the same line, like this:



Combo Label: | V| [X] Checkbox text
Some Other Field: | |
What is the right way to do this? I swear I've seen an example of this somewhere, but I cannot find it anymore.

Maybe something like this? http://www.extjs.com/forum/showthread.php?97635-FormPanel-with-fluid-layout-for-fields&highlight=form+fields+inline I don't think I like modifying the CSS for form field classes myself, since the class names would change with a future release of Ext JS. I'd prefer a standard way.

steffenk
26 May 2010, 8:55 AM
use CompositeFields for this.
http://www.extjs.com/deploy/dev/examples/form/composite-field.html

chaddjohnson
26 May 2010, 8:58 AM
use CompositeFields for this.
http://www.extjs.com/deploy/dev/examples/form/composite-field.html

Ah, yes! That's exactly the example I was referring to. Thank you very much!