Re: QuickForm renderer Question
| From: | Ignatius Reilly | Date: | Sun, 16 May 2004 08:48:45 +0000 |
| Subject: | Re: QuickForm renderer Question | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-12523@lists.php.net to get a copy of this message | ||
You can define an element template associated to a specific name. Remember
that element templates apply based upon the name of the element, not their
type.
For example:
$renderer->setElementTemplate( $GLOBALS['tpl_static'], "static[]" ) ;
will apply the "tpl_static" template to all your static elements named
"static[]", but not to other static elements
HTH
Ignatius
_________________________
"Charles Kline" <ckline@rightcode.net> wrote in message
news:05B9B785-A6A9-11D8-8ED1-000393CDCA6A@rightcode.net...
> Hi all,
>
> If I want to have two different styles for a header entity, how do I
> handle this?
>
> From the example docs, I am using:
>
> $renderer->setHeaderTemplate("\t<tr>\n\t\t<td
> style=\"white-space:nowrap;background:#996;color:#ffc;\" align=\"left\"
> colspan=\"2\"><b>{header}</b></td>\n\t</tr>");
>
> But... I also want another style header in my form (to be used as a
> title bar that holds some static information).
>
> How would this be done?
>
> Thanks,
> Charles