Re: HTML_QuickForm_ElementTable

From: Date: Sat, 08 Apr 2006 09:44:48 +0000
Subject: Re: HTML_QuickForm_ElementTable
References: 1 2  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-42164@lists.php.net to get a copy of this message
Good show. ElementTable will be a massively useful addition to QF. It would be even nicer to have accessors to some of the HTML_Table object methods acting at the global table level, such as set|updateRow|ColAttributes() For example to define columns with different widths, etc Bon courage! Bertrand Mansion thus spake on 2006-04-08 10:48:
Justin Patrin wrote:
Due to the proddings of Helgi I've finally cleaned up the ElementTable element which is part of DB_DataObject_FormBuilder for proposal as its own package. I've updated the code a bit and even fixed a bug when addElement is used before the table is filled out. Let me know what you think. http://pear.php.net/pepr/pepr-proposal-show.php?id=387
I wouldn't use a style attribute in the generated html. The style should be up to the user and can be defined in the css using the class name. I'd also set a specific class name for the table header and the table itself. You could also use the new HTML_table functionality with a thead, tbody and tfoot. If you need options like column_names, row_names, use an $options array in the constructor and a setOptions() method. -- Bertrand Mansion Mamasam Tel : +33 1 48 89 88 26 http://www.mamasam.com Creative Internet Solutions


« previous php.pear.dev (#42164) next »