Home » HTML » HTML_QuickForm » Bug #3252
support for lable element
Details
| Request #3252 | support for lable element |
|---|---|
| Submitted | 2005-01-20 19:05 UTC |
| From | stanger at gmail dot com |
| Status | Wont fix |
| Package | HTML_QuickForm |
| PHP Version | Irrelevant |
| OS | Irrelevant |
| 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.