Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 2.3.2

Request #19955 Add HTML_QuickForm2_Element_Select::getOptionContainer()
Submitted: 2013-05-22 19:13 UTC
From: tamlyn Assigned: avb
Status: Closed Package: HTML_QuickForm2 (version 2.0.0)
PHP Version: 5.3.13 OS:
Roadmaps: 2.0.1    
Subscription  


 [2013-05-22 19:13 UTC] tamlyn (Tamlyn Rhodes)
Description: ------------ I want to loop through my form elements and freeze SELECTs that have only one option. I can see that OptionContainer has a getOptions() method but Select doesn't have a getOptionContainer() method. Should this be added or am I doing it wrong?

Comments

 [2013-11-11 19:21 UTC] cweiske (Christian Weiske)
We need this also, to be able to manually render select boxes in our own renderer. We'd like to render the select element itself, but want to rely on optioncontainer for option rendering. Currently, this is not possible.
 [2013-11-12 18:11 UTC] cweiske (Christian Weiske)
 [2014-06-19 19:01 UTC] avb (Alexey Borzov)
-Status: Open +Status: Closed -Assigned To: +Assigned To: avb
Implemented in Git https://github.com/pear/HTML_QuickForm2/commit/91d90e6d5b48c405ecdfce935ef582d2a0502d95