Re: Radiogroup type?

From: Date: Thu, 21 Oct 2004 17:41:03 +0000
Subject: Re: Radiogroup type?
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-15023@lists.php.net to get a copy of this message
On Thu, 21 Oct 2004 08:33:58 -0700, Ken Restivo <ken@restivo.org> wrote: > > Is there anywhere a custom type widget which has the same API as 'select', but builds > radio buttons instead? > > i.e. I need to be able to switch code from being selects to being radio buttons, on a whim. I > need to build a 'radiogroup' type that behaves like select: i can pass in the same array > that I would pass to select, I can set selected with setSelected(), etc. > > Then, when someone says "I don't like it with a pulldown, let's use radio > buttons", or "there are too many radio buttons, let's use a seletbox instead", I > have 30 seconds of work to do instead of lots more. > > I am considering rolling my own (it doesn't seem to be that difficult), but I do not want > to reinvent the wheel, if this has already been done. > Well...DB_DataObject_FormBuilder supports this for link and enum fields. ;-) -- paperCrane --Justin Patrin--

« previous php.pear.general (#15023) next »