Re: Structures_DataGrid formatter function
| From: | Andrew Nagy | Date: | Fri, 14 May 2004 12:59:42 +0000 |
| Subject: | Re: Structures_DataGrid formatter function | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-12493@lists.php.net to get a copy of this message | ||
Bryn Forbes wrote:
Can anybody point me to an example of how to use the formatter function for a column other than the examples zipped in the package or at http://www.webitecture.org/HTMLDataGrid/docs/examples/ ?Bryn, this is still being developed, Im sorry I just have been running out of time lately! The formatter method allows you to pass a function call as a string. It will automatically add the row as an associative array; this is in my example: http://www.webitecture.org/HTMLDataGrid/docs/examples/example.phps You will see the printLink function called Right now Im undecided how to take this method further. At the moment I will either extend the functionality per my original plan to allow passing of other variables. Or, I will create a whole new column object that extends the current object. Im trying to make the "formatter" as intuitive as possible, so if you have any suggestions, please let me know. Andrew