Re: HTML_QuickForm_advmultiselect new feature or HTML_QuickForm request ?
| From: | Alexey Borzov | Date: | Wed, 15 Jun 2005 06:34:32 +0000 |
| Subject: | Re: HTML_QuickForm_advmultiselect new feature or HTML_QuickForm request ? | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-38133@lists.php.net to get a copy of this message | ||
Hi,
Laurent Laville wrote:
I know that i've opened the vote for HTML_QuickForm_advmultiselect, and it's perharps late to chat about this, but i've a feature i would talk with you (QF leaders). In some situations, we have perharps need to give different attributes to each item (option) of a multiple select box. Of course, it's possible to do it with a bit of code and a loop thru the addOption() method of qf_select element.Yes, exactly.
But i think it's not so easy. I propose, and i need your opinion, to add the ability to do it with the load method.load() method is designed to quickly load an array of options without any fancy stuff to do with them. If fancy stuff is needed, then one should really use addOption(). I don't think that writing a single loop is "not so easy".