Re: HTML_QuickForm2_Renderer_Array: labelhtml

From: Date: Tue, 04 May 2010 08:25:04 +0000
Subject: Re: HTML_QuickForm2_Renderer_Array: labelhtml
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-30495@lists.php.net to get a copy of this message
Hi Christian, On 04.05.2010 0:55, Christian Weiske wrote:
I think it'd be cool if the array renderer would also include the complete html label code for each element, along the lines of:
             $ary['labelhtml'] = '<label for="' . $ary['id'] . '">'
                 . $ary['label'] . '</label>';
What do you think?
I think that generating a label tag is a pretty trivial task, especially with the Renderer providing all the necessary parts. Also the next obvious feature request here will be to customize 'labelhtml' output, this is the thing I wouldn't like in Array Renderer at all.

« previous php.pear.general (#30495) next »