| 1 | 13 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 2 | |||
| 3 | package HTML::FormFu::Element::Radio; | ||
| 4 | 13 | $HTML::FormFu::Element::Radio::VERSION = '2.06'; | |
| 5 | # ABSTRACT: Radio form field | ||
| 6 | |||
| 7 | 13 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | 13 | extends 'HTML::FormFu::Element::Checkbox'; | |
| 10 | |||
| 11 | 13 | ▶ | use HTML::FormFu::Constants qw( $EMPTY_STR ); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 12 | |||
| 13 | 13 | __PACKAGE__->mk_output_accessors(qw( default )); | |
| 14 | |||
| 15 | after BUILD => sub { | ||
| 16 | 32 | ▶ | my $self = shift; |
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||
| 17 | |||
| 18 | 32 | $self->field_type('radio'); | |
| 19 | |||
| 20 | 32 | return; | |
| 21 | 13 | }; | |
| 22 | |||
| 23 | 13 | __PACKAGE__->meta->make_immutable; | |
| 24 | |||
| 25 | 13 | 1; | |
| 26 | |||
| 27 | __END__ | ||
| 28 | |||
| 29 | =pod | ||
| 30 | |||
| 31 | =encoding UTF-8 | ||
| 32 | |||
| 33 | =head1 NAME | ||
| 34 | |||
| 35 | HTML::FormFu::Element::Radio - Radio form field | ||
| 36 | |||
| 37 | =head1 VERSION | ||
| 38 | |||
| 39 | version 2.06 | ||
| 40 | |||
| 41 | =head1 SYNOPSIS | ||
| 42 | |||
| 43 | my $element = $form->element( Radio => 'foo' ); | ||
| 44 | |||
| 45 | =head1 DESCRIPTION | ||
| 46 | |||
| 47 | Radio form field. | ||
| 48 | |||
| 49 | =head1 SEE ALSO | ||
| 50 | |||
| 51 | Is a sub-class of, and inherits methods from | ||
| 52 | L<HTML::FormFu::Element::Checkbox>, | ||
| 53 | L<HTML::FormFu::Role::Element::Input>, | ||
| 54 | L<HTML::FormFu::Role::Element::Field>, | ||
| 55 | L<HTML::FormFu::Element> | ||
| 56 | |||
| 57 | L<HTML::FormFu> | ||
| 58 | |||
| 59 | =head1 AUTHOR | ||
| 60 | |||
| 61 | Carl Franks, C<cfranks@cpan.org> | ||
| 62 | |||
| 63 | =head1 LICENSE | ||
| 64 | |||
| 65 | This library is free software, you can redistribute it and/or modify it under | ||
| 66 | the same terms as Perl itself. | ||
| 67 | |||
| 68 | =head1 AUTHOR | ||
| 69 | |||
| 70 | Carl Franks <cpan@fireartist.com> | ||
| 71 | |||
| 72 | =head1 COPYRIGHT AND LICENSE | ||
| 73 | |||
| 74 | This software is copyright (c) 2018 by Carl Franks. | ||
| 75 | |||
| 76 | This is free software; you can redistribute it and/or modify it under | ||
| 77 | the same terms as the Perl 5 programming language system itself. | ||
| 78 | |||
| 79 | =cut | ||