Andrew Sterling Hanenkamp > Contentment-0.011_033 > Contentment::Form::Widget::Submit

Download:
Contentment-0.011_033.tar.gz

Dependencies

Annotate this POD

Module Version: 0.03   Source  

NAME ^

Contentment::Form::Widget::Submit - Submit widget

SYNOPSIS ^

  my $form = Contentment::Form->define(
      # ...
      widgets => {
          submit => {
              value => [ qw( Up Down Left Right ) ],
              class => 'Submit',
          },
      }
      # ...
  );

DESCRIPTION ^

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:

name (optional, defaults to "submit")

If not given, the name defaults to "submit".

value (optional, 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".

AUTHOR ^

Andrew Sterling Hanenkamp, <hanenkamp@cpan.org>

LICENSE AND COPYRIGHT ^

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.

syntax highlighting: