Re: Re: HTML_Table: thead, tfoot and tbody
| From: | Christian Weiske | Date: | Sat, 30 Jul 2005 19:32:43 +0000 |
| Subject: | Re: Re: HTML_Table: thead, tfoot and tbody | ||
| References: | 1 2 3 4 5 6 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-39052@lists.php.net to get a copy of this message | ||
Mark,
> How about allowing the $row and $col params in
> set{Header/Body/Footer/Cell}Contents() to be null? E.g.: If $col = null
> then the content should go in every col of the specified row.
> Accordingly for the cases $row = null and ($row = null && $col = null).
Yes, that is a quite neat solution.
Only: Where to pass the offsets?
If I e.g. have a table with 5 cols and 10 rows, but have want the
headers begin at col 1 and not col 0 (as e.g. the first header col has
to be empty as the data have a special th in col 0), I'd like to pass an
offset at which appending should begin.
So in my case here:
> setHeaderContents(0, null, array('TitleCol1', 'TitleCol2',
> 'TitleCol3'));
would insert the data at col0, col1 and col2 - while I want them to be
inserted at col1, col2 and col3.
Perhaps adding another parameter at the end of the function:
> setHeaderContents(0, null, array('TitleCol1', 'TitleCol2',
> 'TitleCol3'), 1/*offset*/);
Which would mean that insertion begins at col1.
Regards/MfG,
Christian Weiske
--
XMMS is playing now:
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc