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

DESCRIPTION

RadioGroup Element.

An implicit In Constraint is automatically added to every RadioGroup to ensure that only values in $e-values> are considered valid.

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 viar labels.

labels

The labels for corresponding l<values>.

new

$self->prepare( $widget, $value )

$self->containerize( $widget, $value, $errors )

id

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.