Structures_DataGrid set row attributes
| From: | Gerard Bowe | Date: | Fri, 21 Oct 2005 19:11:32 +0000 |
| Subject: | Structures_DataGrid set row attributes | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-21583@lists.php.net to get a copy of this message | ||
Is it possible to set the row attributes on the fly.
I am using Structures_DataGrid together with DB_DataObject (works very well) where I pass an Orders DO into DG. It outputs a list of orders (date, ordered by, ordered from, etc, and status (ordered, arrived, onhold)).
I would like to use the status field to format the output list (<tr class='status'>, but I do not know how to do this with DataGrid.
I can only find info on using
$dg->renderer->setTableEvenRowAttributes(array('bgcolor' => '#FFFFFF'));
$dg->renderer->setTableOddRowAttributes(array('bgcolor' => '#EEEEEE'));
Thanks
Ger