|
I do not know about the cycle view helper, but if you keep the count of
the row, you can get ($count % 2 === 0) to get the alternating and you
can just call out your decorator from the row and set the class attrib
to whatever you need. However, if your row is a TR, setting a class for the background color might not help? I'm not sure about that. I know border properties do not have any effect on tr, they have to be set on each td. But assuming your row is a div, with a decorator called HtmlTag, do something like: $form->getElement('firstIdOnMyRow')->getDecorator('HtmlTag')->setAttrib('class', 'alternateColor'); Not sure if it is setAttrib or setOption, but I'm sure you will find out. Regards, Bart Colin Guthrie schreef: DorkFest wrote: --
|
- [fw-general] Alternating row colors in a Zend_Form DorkFest
- [fw-general] Re: Alternating row colors in a Zend_Form Colin Guthrie
- Re: [fw-general] Re: Alternating row colors in a Z... Bart McLeod
- Re: [fw-general] Alternating row colors in a Zend_Form Mon Zafra

