 |
|
|
| View previous topic :: View next topic |
| Author |
Message |
sutterp
Joined: 16 Apr 2008 Posts: 6 Location: Western Australia
|
Posted: Fri May 09, 2008 1:56 pm Post subject: Again Column Formatter Callback |
|
|
I have the need to copy a value of a table element into a form variable when a table element is clicked. The obvious way to do this, would be to associate the onclick event in the formatter callback function, e.g put
| Code: | | onclick="document.forms[0].elementname.value=ValueFromRecord |
into $params.attribs in my column formatter function.
$params['attribs'] gives me the value of the attributes as specified in the constructor of Structures_DataGrid_Column. I now want to append to attribs the onclick handling string. How do I pass the appended/changed attributes value back to the Structures_DataGrid_Column object? $params is obviously read-only
Thanks
Peter |
|
| Back to top |
|
 |
mark

Joined: 07 Jan 2007 Posts: 1053
|
Posted: Fri May 09, 2008 5:21 pm Post subject: |
|
|
| I don't really get your problem here, but most likely you'll want to overload the Smarty renderer class and add the desired behaviour there. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|