Re: Quickform
| From: | Bertrand Mansion | Date: | Thu, 01 Mar 2007 09:23:56 +0000 |
| Subject: | Re: Quickform | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-26695@lists.php.net to get a copy of this message | ||
Le 1 mars 07 à 00:38, Justin Patrin a écrit :
On 2/28/07, Ian Warner <ian.warner@hotxt.net> wrote:You could also tweak the default template and use the second label (you can have as many labels as you want as long as your template knows what to do with them) to display some help information. addElement() accepts an array for the label. There must be an example somewhere on how to use this.I would like to add a new template element: HELP This would contain an icon where the user can hover over and get some help on that form element. So I would want to register an element the form generation and also below state where I want these outputted.If you just want to have a help icon beside each element then just change the generic element template. If you want to create a new element that has your content you need to create your own element class.