Radiogroup type?
| From: | Ken Restivo | Date: | Thu, 21 Oct 2004 15:33:58 +0000 |
| Subject: | Radiogroup type? | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-15018@lists.php.net to get a copy of this message | ||
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
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.
- -ken
- --
- ---------------
The world's most affordable web hosting.
http://www.nearlyfreespeech.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
iD8DBQFBd9bme8HF+6xeOIcRAqHrAJ9iphPcQ6zaYPODVlEmv71aeE7X4ACfYKnx
vbfwA+eJj8GwGupiwn5hJcw=
=9fkr
-----END PGP SIGNATURE-----