PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Structures » Structures_DataGrid_Renderer_HTMLTable » Bug #9139

HTMLTable renderer: column groups

Details

Request #9139HTMLTable renderer: column groups
Submitted2006-10-23 12:11 UTC
Fromdaniel at assertio dot es
Assignedwiesemann
StatusWont fix
PackageStructures_DataGrid_Renderer_HTMLTable
PHP Version5.1.4
OSn/a
Roadmaps(Not assigned)

Comments

[2006-10-23 12:11 UTC] daniel at assertio dot es

Description:
------------
Haven't seen this feature, so here's my request.

Would it be easy to implement the ability to add additional headers above the main header? The additional headers don't need to provide any functionality, just would be useful for display purposes.

For example, the datasource has columns:

| article | description | units | price | total |

And the headers could be grouped as:

| table title |
| description | sales info |
| article | description | units | price | total |

This header grouping labels could be easily supplied as a renderer option:
$extraHeaders[] = array(array('table title', 5);
$extraHeaders[] = array(array('description', 2), array('sales info', 3));
$rendererOptions = array('headerGroupingLabels' => $extraHeaders);

Hope others might find this useful.