Re: QuickForm labels (again)

From: Date: Tue, 22 Apr 2003 22:30:22 +0000
Subject: Re: QuickForm labels (again)
References: 1 2  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-15359@lists.php.net to get a copy of this message
On Mon, 2003-04-21 at 21:14, Alexey Borzov wrote: [...snip...] > My point is, this 'description' functionality can be added without touching > anything except renderers. So I'd like not to touch anything except them unless > you give very good reasons to do so. :] > > > The default renderer will use the first label as the main label, and > > display the rest below the element, seperated by commas. > > Don't you think that implode()'ing the additional labels somewhat goes against > the idea of having several labels? Besides, adding a {labels} placeholder to the > default element block and always processing it adds some overhead. > I suggest: > 1) Do not change the default element template, if someone needs this > functionality, he should bother about the template himself. > 2) If additional labels are present, then assign them to placeholders {label_2}, > ..., {label_N} > 3) If additional labels are not present, do nothing > 4) A usage example for docs/ is a good idea. > OK... I've attached a renderer that handles array based labels, I hadn't realised how useful the renderers were! I don't know what (if anything) you want to do with this, but I'm willing to write a quick docs/ entry for it. Jon

Attachment: [application/x-php] Default_Labels.php
« previous php.pear.dev (#15359) next »