[Html-widget] Radio button group
Carl Franks
fireartist at gmail.com
Thu Sep 28 17:09:15 CEST 2006
I've commited (v 5037) the changes to the RadioGroup element.
http://dev.catalystframework.org/repos/Catalyst/trunk/HTML-Widget
There's slight classname differences from my earlier description, the
main ones are documented in a new CSS pod section in RadioGroup.pm
The OP's request for horizontal styling is also documented there.
Unlike other elements, which are only wrapped in a 'label' if there's
a label set,
the RadioGroup is currently always wrapped in a 'fieldset', regardless
of whether the label or legend is set.
Is this desired behaviour?
Here's an example of the output...
<form id="widget" method="post">
<fieldset class="widget_fieldset">
<fieldset class="radiogroup_fieldset" id="widget_foo">
<span class="radiogroup_label" id="widget_foo_label">my label
</span>
<span class="radiogroup">
<label for="widget_foo_1" id="widget_foo_1_label">
<input class="radio" id="widget_foo_1" name="foo" type="radio"
value="0" />false
</label>
<label for="widget_foo_2" id="widget_foo_2_label">
<input class="radio" id="widget_foo_2" name="foo" type="radio"
value="1" />true
</label>
</span>
</fieldset>
</fieldset>
</form>
More information about the Html-widget
mailing list