PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

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.