Re: Changing the way freeze() represents checkboxes and radio buttons
| From: | Mark Wiesemann | Date: | Tue, 13 Jun 2006 19:50:31 +0000 |
| Subject: | Re: Changing the way freeze() represents checkboxes and radio buttons | ||
| References: | 1 2 3 4 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-24347@lists.php.net to get a copy of this message | ||
Noel da Costa wrote:
> I'm trying to use freeze() as an easy way of rendering to a table
> from form data.
> It all works OK, except that I can't find a way of changing the way
> checkboxes and radio buttons are represented.
>
> Ideally, I'd just like checkbox values to show as yes/no and radio
> buttons simply to display the selected value (rather than both with
> x's).
Extend the element class, overload getFrozenHtml() with your preferred
output, register these new elements and use it then like the checkbox /
radio button element that QF provides you.
Regards,
Mark