Home » Structures » Structures_DataGrid » Bug #5246
Allow to append and/or prepend columns
Details
| Request #5246 | Allow to append and/or prepend columns |
|---|---|
| Submitted | 2005-08-30 18:52 UTC |
| From | edwinf at xasa dot com |
| Assigned | olivierg |
| Status | Closed |
| Package | Structures_DataGrid |
| PHP Version | 4.3.8 |
| OS | Irrelevant |
| Roadmaps | (Not assigned) |
Comments
[2005-08-30 18:52 UTC] edwinf at xasa dot com
Description:
------------
Make the object to be able to add columns both sides, prepending or appending.
It would be nice to create a HTML_QuickForm_Element based on this one.
[2006-05-31 11:26 UTC] olivierg at php dot net
This has been fixed in CVS.
The addColumn prototype now is :
addColumn(&$column, $position, $relativeTo)
$position and $relativeTo are optional.
$position can be one of : "first", "last", "after" or "before".
If $position is "after" or "before", then $relativeTo must contain a column label name or field name.
Note that the behaviour of addColumn() is (and has always been) different if you call it before or after bind().
Thanks for your report