PEAR is archived and read-only

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

Home » HTML » HTML_QuickForm » Bug #3252

support for lable element

Details

Request #3252support for lable element
Submitted2005-01-20 19:05 UTC
Fromstanger at gmail dot com
StatusWont fix
PackageHTML_QuickForm
PHP VersionIrrelevant
OSIrrelevant
Roadmaps(Not assigned)

Comments

[2005-01-20 19:05 UTC] stanger at gmail dot com

Description:
------------
In the current implementation (3.2) there is no easy way
for every element to have a label of the form:
<label for="{elementID}">{label}</label>

This doesn't have to be part of the default renderer but
the implemenation of a getID() function in the
HTML_QuickForm_Element class could allow a user to
specify this action on their own by overloading the
renderElement() function in the
HTML_QuickForm_Renderer_Default class. Another meathod
for this could be to allow an {id} substitution in the
renderElement() function. The value for the ID could
simply be the name of the form element or could be
autogenerated similar to the id of submit buttons.