I would make a method in my form object that goes like:

$pos = 0
// loop through each element
   if (++$pos % 2 == 0)
      $element->getDecorator('row')->setOption('class', 'even')
// end loop

that is called before rendering. It's probably possible to do with a custom
element decorator if you can somehow pass the position of the element to the
decorator class.

On Tue, Oct 21, 2008 at 4:24 PM, monk.e.boy <[EMAIL PROTECTED]>wrote:

>
>
>
> Ralf Eggert wrote:
> >
> > Hi Mon,
> >
> > Thanks this does work now:
> >
> >
>
> Thanks, mon.
>
> Do you have a solution for zebra striping the rows?
>
> thanks
>
> monk.e.boy
> --
> View this message in context:
> http://www.nabble.com/Zend_Form-decorators-for-table-layout-within-an-ini-file-tp20055298p20085614.html
> Sent from the Zend Framework mailing list archive at Nabble.com.
>
>

Reply via email to