PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Structures » Structures_DataGrid » Bug #5246

Allow to append and/or prepend columns

Details

Request #5246Allow to append and/or prepend columns
Submitted2005-08-30 18:52 UTC
Fromedwinf at xasa dot com
Assignedolivierg
StatusClosed
PackageStructures_DataGrid
PHP Version4.3.8
OSIrrelevant
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