NAME
HTML::Widget::Element::RadioGroup - Radio Element grouping
SYNOPSIS
my $e = $widget->element( 'RadioGroup', 'foo', [qw/choice1 choice2/] );
$e->comment('(Required)');
$e->label('Foo'); # label for the whole thing
$e->values([qw/foo bar gorch/]);
$e->labels([qw/Fu Bur Garch/]); # defaults to ucfirst of values
$e->comments([qw/funky/]); # defaults to empty
$e->value("foo"); # the currently selected value
$e->constrain_values(1);
DESCRIPTION
RadioGroup Element.
As of version 1.09, an In constraint is no longer automatically added to RadioGroup elements. Use "constrain_values" to provide this functionality.
METHODS
comment
Add a comment to this Element.
label
This label will be placed next to your Element.
values
List of form values for radio checks. Will also be used as labels if not otherwise specified via labels.
checked
value
Set which radio element will be pre-set to "checked".
"value" is provided as an alias for "checked".
labels
The labels for corresponding l</values>.
constrain_values
If true, an In constraint will automatically be added to the widget, using the values from "values".
new
prepare
containerize
id
SEE ALSO
AUTHOR
Jess Robinson
Yuval Kogman
LICENSE
This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself.