I'm not moving ahead on feature enhancements until I do some major
core stabilization, but I imagine I'll be able to get back to this
stuff reasonably soon...
I'm happy to look over requests, though:
> I think it would be great to be able to specify a table header
> background color (in the same spirit as row_colors).
>
> Many of the mockups I receive from my designers like to make the
> header more distinguishable from the data and using a background color
> is a common solution.
I will probably allow full control of styling of header cells
eventually, but this one is easy. Please file a ticket in lighthouse.
I'll put it on hold but it should be a simple feature to implement
once I get around to it. (And patches are welcome)
> Also, there are times where I'll have a 2 column table with the
> "headers" on the left side and the data on the right.
>
> e.g.
>
> Name | John Doe
> Company | Some Company
> Date | 01/01/2008
>
> "column_colors" would be useful in cases where I want to have all the
> left columns share the same background color.
I'll also probably eventually support full column style tweaking.
However, I'm not sure the best way to support something like 'column 0
gray, column 1..n white'
What did you have in mind, interface wise?
> Thanks and keep up the great work!
Thanks for sharing your suggestions.
-greg
--
Technical Blaag at: http://blog.majesticseacreature.com | Non-tech
stuff at: http://metametta.blogspot.com
I need to take a deeper look into whether z-ordering is complicated.
It's a feature than many wanted in PDF::Writer but was never
implemented. I'll read up on the spec once I've cleaned up the core,
and see what the details are. If anyone wants to get a head start and
read up on this and then share notes with me, that'd be great.
> I was able to do achieve the correct effect by rendering the rectangle
> prior to the table but it won't work on a table that flows over
> multiple pages.
>
> I went ahead and modified the library to support a :header_color
> option for tables.
Can you bring up a fork on github and share this code? If it's fairly
straightforward, I'll merge it.
yep, that looks pretty simple, too.
Can you add an example that shows how it works under examples/ ?
I'll pull this in, probably not for 0.2 because I'm about to make that
snapshot, but immediately after that, and it will be in 0.3 if I don't
implement full header tweaking functionality by then.
Great, I'm going to try to get that 0.2 snapshot out today, I'll pull
this into master just after that.
Thanks!