| HTML-FormFu documentation | Contained in the HTML-FormFu distribution. |
HTML::FormFu::Element::Radio - Radio form field
my $element = $form->element( Radio => 'foo' );
Radio form field.
Overrides the default value, so it's true.
Is a sub-class of, and inherits methods from HTML::FormFu::Element::Checkbox, HTML::FormFu::Element::_Input, HTML::FormFu::Element::_Field, HTML::FormFu::Element
Carl Franks, cfranks@cpan.org
This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself.
| HTML-FormFu documentation | Contained in the HTML-FormFu distribution. |
package HTML::FormFu::Element::Radio; use Moose; extends 'HTML::FormFu::Element::Checkbox'; use HTML::FormFu::Constants qw( $EMPTY_STR ); __PACKAGE__->mk_output_accessors(qw( default )); after BUILD => sub { my $self = shift; $self->field_type('radio'); return; }; __PACKAGE__->meta->make_immutable; 1; __END__