From: | "Emanuele Zeppieri" <ema.zep [...] libero.it> |
To: | <bug-DBIx-XHTML_Table [...] rt.cpan.org> |
Subject: | Problem with column names when using style_3 constructor. |
Date: | Mon, 20 Dec 2004 18:03:03 +0100 |
Dear Jeffrey,
first of all congratulation and thanks for your excellent
DBIx::XHTML_Table distribution and for its wonderful documentation as
well.
It seems to have an annoying problem though: when I use the style_3
constructor, that is the constructor which does not use any DBI method:
$obj_ref = new DBIx::XHTML_Table($rows, $headers)
(note that I'm correctly passing the column names via the array ref
$headers here,) then both the column names and their index numbers seem
not to work anymore, so that if I try to reference them in the modify
method like this:
$table->modify(
td => {
style => 'text-align: right'
},
[1, 2]
);
or like this:
$table->modify(
td => {
style => 'text-align: right'
},
['first_col', 'second_col']
);
modify is simply ignored, and no style is applied to the table anywhere.
It works perfectly instead if I use the style_1 or the style_2
constructors.
Cheers and thanks again for your invaluable work!
Emanuele Zeppieri.