Re: QuickForm separator element
| From: | Bertrand Mansion | Date: | Wed, 09 Apr 2003 13:19:38 +0000 |
| Subject: | Re: QuickForm separator element | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-4731@lists.php.net to get a copy of this message | ||
<demian@muse23.com> wrote :
> Betrand,
>
> Thanks for the quick answer :-)
>
> In this line from QuickForm_example7.php
>
> $form->addGroup($checkbox, 'ichkABC', 'ABCD:',
> array(' ', '<br />'));
>
> The final argument to addGroup() specifies that each element in the group
> should
> be followed by a and every second element should be followed by a <br
> />
>
> At least that's what the output seems to demonstrate. I'd like to modify this
> so the group is output to a table, and every third element is sent to a new
> <tr>
>
> eg:
>
> <tr>
> <td>elem 1</td><td>elem 2</td>
> </tr>
> <tr>
> <td>elem 3</td><td>elem 3</td>
> </tr>
>
> The default functionality looks a bit chaotic as I'm using longish field
> labels.
> If you could point me to the method that handles this I will give it a go :-)
There is no reason to use a group if those elements are not logically
related. You might prefer to use addElement and then set a template for
those elements you are adding. Or have a look at setting the template for
the group and its elements. Or just wait for the IT renderer in release 3.0..
There are many possibilities, it's difficult to answer without knowing
exactly what you want to do, which type of groups and elements you use.
About the Quickform::updateAttributes() quirk thread, you might want to send
me a piece of code so that I can test it...
Bertrand Mansion
Mamasam