Debian Codegraph @

lib/HTML/FormHandler/Field/Button.pm

raw
1 package HTML::FormHandler::Field::Button;
2 # ABSTRACT: button field
3 $HTML::FormHandler::Field::Button::VERSION = '0.410002';
4 use Moose;
5 extends 'HTML::FormHandler::Field::NoValue';
6
7
8 has '+widget' => ( default => 'Button' );
9
10 has '+value' => ( default => 'Button' );
11
12 __PACKAGE__->meta->make_immutable;
13 use namespace::autoclean;
14 1;
15
16 __END__
17
18 =pod
19
20 =encoding UTF-8
21
22 =head1 NAME
23
24 HTML::FormHandler::Field::Button - button field
25
26 =head1 VERSION
27
28 version 0.410002
29
30 =head1 SYNOPSIS
31
32 Use this field to declare a button field in your form.
33
34 has_field 'button' => ( type => 'Button', value => 'Press Me!' );
35
36 Uses the 'button' widget.
37
38 =head1 AUTHOR
39
40 FormHandler Contributors - see HTML::FormHandler
41
42 =head1 COPYRIGHT AND LICENSE
43
44 This software is copyright (c) 2017 by Gerda Shank.
45
46 This is free software; you can redistribute it and/or modify it under
47 the same terms as the Perl 5 programming language system itself.
48
49 =cut