HTML_QuickForm_advmultiselect new feature or HTML_QuickForm request ?

From: Date: Tue, 14 Jun 2005 10:41:19 +0000
Subject: HTML_QuickForm_advmultiselect new feature or HTML_QuickForm request ?
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-38103@lists.php.net to get a copy of this message
Hi Alexey, Bertrand 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. 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. Well, as a demo is better than a long chat, here are the feature i hope to have in action. See the modified source class of HTML_QuickForm_advmultiselect (lines 179 to 199) http://laurent-laville.org/?mod=pear&des=pepr&act=advmultiselect&show=source_cls and source code of my new demo (6) http://laurent-laville.org/?mod=pear&des=pepr&act=advmultiselect&show=source_ex6 See lines 19-22, 30 In this demo, i've disabled the 'pear' fruit item, and gave a background color to tangerine. What i would like to do with such case ? Gave a list of values with one restriction (pear, is unavailable but it could be in an other case) and show a particular and important option (fruit). All is possible, because we can set all attributes we might want. Thanks in advance for your feedback Laurent

« previous php.pear.dev (#38103) next »