Contentment::Form::Widget::Submit - Submit widget
my $form = Contentment::Form->define( # ... widgets => { submit => { value => [ qw( Up Down Left Right ) ], class => 'Submit', }, } # ... );
This provides a simple widget for adding submit buttons to a form. This widget performs validation to make sure that only submit labels given can be used.
The widget constructor accepts the following arguments:
If not given, the name defaults to "submit".
This may either be a scalar name of a submit button or an array of names for submit buttons. Upon submission, only the button names given will be accepted (or else a validation error will occur).
By default, the value is "Submit".
Andrew Sterling Hanenkamp, <hanenkamp@cpan.org>
Copyright 2005 Andrew Sterling Hanenkamp <hanenkamp@cpan.org>. All Rights Reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
To install Contentment, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Contentment
CPAN shell
perl -MCPAN -e shell install Contentment
For more information on module installation, please visit the detailed CPAN module installation guide.