Re: [PEPr] Comment on HTML::HTML_QuickForm_Renderer_Tableless

From: Date: Sat, 17 Jun 2006 12:27:02 +0000
Subject: Re: [PEPr] Comment on HTML::HTML_QuickForm_Renderer_Tableless
References: 1 2 3  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-42992@lists.php.net to get a copy of this message
Philippe Jausions wrote:
I think the best way to handle that would be to create a fieldset for each header. This way the API is really basically the same as with the current default renderer. Start with a default fieldset, if first field is a header put it as legend, then add fields, and when you hit a new header, close the previous fieldset and start a new one. You wouldn't need the "addFieldSet()" method which would break if you were to switch renderer.
Good argument and a smart idea. I've implemented that and updated the two examples, showing both possible cases (first visible element is a header or not). As there seems to be some interest in this package, should I propose the HTML_QuickForm_DHTMLRulesTableless package now or should I better wait until the voting was successful? Regards, Mark

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