Re: Radiogroup type?

From: Date: Mon, 15 Nov 2004 13:14:20 +0000
Subject: Re: Radiogroup type?
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-15510@lists.php.net to get a copy of this message
Hi This can also be done using smarty (smarty.php.net) as a template engine http://smarty.php.net/manual/en/language.function.html.radios.php Michiel Ken Restivo wrote:
-----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-----


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