HTML::Widget::Element::RadioGroup - Radio Element grouping
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
RadioGroup Element.
Add a comment to this Element.
This label will be placed next to your Element.
The size of a select element determines whether it will be displayed as a dropdown (size = 1), or a multi-select list element. The default is 1.
A list of options in key => value format. Each key is the unique id of an option tag, and its corresponding value is the text displayed in the element.
A list of keys (unique option ids) which will be pre-set to "selected".
Jess Robinson
Yuval Kogman
This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself.
To install HTML::Widget, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTML::Widget
CPAN shell
perl -MCPAN -e shell install HTML::Widget
For more information on module installation, please visit the detailed CPAN module installation guide.