Re: [Structures_DataGrid] Additional headers
| From: | Andrew Nagy | Date: | Fri, 18 Feb 2005 14:51:07 +0000 |
| Subject: | Re: [Structures_DataGrid] Additional headers | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-17568@lists.php.net to get a copy of this message | ||
Daniel García wrote:
Hi all,
I haven't seen a way using the package methods, and I'm thinking of managing this additional headers creating another renderer based on (inheriting) the HTMLTable renderer, which would handle this. E.g.
$dg->renderer->setSuperheaders (array (
0 => array(
0 => array(
'cols' => 2,
'label' => 'Person info'),
1 => array(
'cols' => 2,
'label' => 'Actions')
)
));
Any work done on this so far? Advice? I'd hate to reinvent this wheel.... :-)
I think a new renderer that extends HTMLTable is the best idea for this. I have no plans to implement this in SDG, but maybe some else has done this? It seems like a pretty simple addition
Good luck
Andrew