Re: HTML_QuickForm_ElementTable

From: Date: Sat, 08 Apr 2006 17:48:03 +0000
Subject: Re: HTML_QuickForm_ElementTable
References: 1 2 3  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-42167@lists.php.net to get a copy of this message
On 4/8/06, Ignatius Reilly <ignatius.reilly@free.fr> wrote: > 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 > It's a good idea, but a bit hard to implement since we're putting element objects in the table, not normal text. I have some ideas, though, and will see what I can do. > 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 > > -- > PEAR Development Mailing List (http://pear.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Justin Patrin

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