Thanks James.
An example:

$options = array('R' => 'red', 'G' => 'green', 'B' => 'blue');
$colors = new Zend_Form_Element_Radio('colors');
$colors->setRequired(true)
           ->setValue('R')
           ->setMultiOptions($options_tipo_genetico);

How can I display it on the same line using decorators? Could someone write
an how to?


JDempster wrote:
> 
> If you want your items to display differently the best way to do this is
> use
> a bit of CSS magic on the html elements, take a look at the source code it
> produces and create some CSS to go with that, it works wonders.
> 
> Failing that, if you need more control you can throw different options at
> the default decorators which will allow you to change the html elements
> that
> are created along with your form. You can even create your own decorators
> and set those to work on your form allowing your form to be come anything
> you like.
> 
> See
> http://framework.zend.com/manual/en/zend.form.elements.html#zend.form.elements.decorators
> http://framework.zend.com/manual/en/zend.form.decorators.html
> 
> -- 
> /James
> 
> 
-- 
View this message in context: 
http://www.nabble.com/Zend_Form---How-to-display-Elements-on-the-same-line-tp15630122s16154p15632482.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to