is there a suggested method naming convention for converting an object
to a ruport table like to_ruport_table
Also, the default pdf output is nice with the rotating colors. Can
this effect be added to the default html output? Where can I find the
documentation/samples/source for to_html options?
Thanks,
Greg
On Jun 12, 9:07 pm, "Michael Milner" <mikem...@gmail.com> wrote:
> It'd be a little complicated to add the alternating rows to html output. I
> don't think we want to add it as a default because not everyone would want
> it (but other people can let me know if I'm wrong about that). So,
> basically, you'd need to define a custom formatter to add css tags to the
> rows. If it's something you want to work on, I'd be glad to help you with
> it.
>
I ended up needing this, as well adding classes to the table, and
making thead and tbody tags. If you pass an array as your row_class
than it will alternate amongst them, so doing a :row_class => ['odd',
'even'] with some CSS would give you zebra striping. I think all 3 of
those changes are generally useful. I would appreciate any comments.
> I ended up needing this, as well adding classes to the table, and
> making thead and tbody tags. If you pass an array as your row_class
> than it will alternate amongst them, so doing a :row_class => ['odd',
> 'even'] with some CSS would give you zebra striping. I think all 3 of
> those changes are generally useful. I would appreciate any comments.
>
> http://pastie.caboo.se/73475
I think our HTML formatter can use some extra helpers like this, and
since you do it via classes, it seems pretty general.
Can you prepare a patch against trunk with tests?