Re: How to set cell styles in DataGrid CVS?

From: Date: Sun, 07 May 2006 17:42:05 +0000
Subject: Re: How to set cell styles in DataGrid CVS?
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-23981@lists.php.net to get a copy of this message
dondo wrote: > I'm currently using the latest CVS version of Structures::DataGrid > and would like to assign CSS classes to each cell of a table. Maybe > the answer is "wait until the next release and stop using CVS!", but > maybe this is an easy question to answer. More specifically, I want > the columns to look something like: <td class="blah"> Two possibilities: (1) Use the option 'columnAttributes' of the HTMLTable renderer. (2) Create your own HTML_Table instance, call $dg->fill() with this instance and then set your attributes to the table columns via $table->setColAttributes(). Both of these possibilities will only work with the CVS version. And: The column attributes from the column object should work as before. If they do not, then please provide a short example code - either here or via the bug tracker. Thanks. Regards, Mark

« previous php.pear.general (#23981) next »