Re: Structures DataGrid Smarty Render & Column Width
| From: | Mark Wiesemann | Date: | Tue, 25 Jul 2006 18:56:23 +0000 |
| Subject: | Re: Structures DataGrid Smarty Render & Column Width | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-24760@lists.php.net to get a copy of this message | ||
Michael Caplan wrote:
> I'm looking for a decent way to define the width of a colum set when
> rendering the datagrid as a table. If I know in the template in advance
> how many columns and each desired width, then I can code some logic in
> the template (although that tends to be a bit messy). However, in my
> case, the columns are variable, and ideally should be set outside of the
> design logic. I'd like to do something like this: [...]
With the current version of the Smarty renderer, you don't have access
to the column attributes.
You can either overload the Smarty renderer, so that buildHeader() does
what you want, or write a feature request for the Smarty renderer.
Regards,
Mark