Vertical text for table headers

9 views
Skip to first unread message

Valera

unread,
Nov 19, 2009, 9:10:15 AM11/19/09
to Prawn
Is it possible to have the table headers rendered vertically (e.g.
sideways)? For example, if I have some long text in the table headers,
it would be more convenient to display the text vertically.

I noticed that there is a :rotate option for
Prawn::Document::Text#text that allows the text to be rotated. Is
something like that a possibility for tables?

This isn't a very important feature (to me, at least), I was just
wondering if it's possible (or if someone has done it already). It
would probably be one of those "nice-to-have" features.

Gregory Brown

unread,
Nov 19, 2009, 9:37:05 AM11/19/09
to prawn...@googlegroups.com
On Thu, Nov 19, 2009 at 9:10 AM, Valera <vetr...@gmail.com> wrote:

> I noticed that there is a :rotate option for
> Prawn::Document::Text#text that allows the text to be rotated. Is
> something like that a possibility for tables?

It's a possibility, but we do not support it yet.

> This isn't a very important feature (to me, at least), I was just
> wondering if it's possible (or if someone has done it already). It
> would probably be one of those "nice-to-have" features.

It is a nice to have feature. Unfortunately, it lies atop one of our
only red-zones in Prawn. I don't want to accept patches to
prawn-layout (except for maybe grid support) until we have it
refactored.
Reply all
Reply to author
Forward
0 new messages