Andrew Sterling Hanenkamp > Form-Factory > Form::Factory::Feature::Control::MatchAvailableChoices

Download:
Form-Factory-0.022.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.022   Source  

NAME ^

Form::Factory::Feature::Control::MatchAvailableChoices - Check for choice availability

VERSION ^

version 0.022

SYNOPSIS ^

  has_control time_zone => (
      control => 'select_one',
      options => {
          available_choices => [
              map { Form::Factory::Control::Choice->new($_) } qw( PST MST CST EST )
          ],
      },
      features => {
          match_available_choices => 1,
      },
  );

DESCRIPTION ^

Verifies that the value set for the control matches one of the available choices.

METHODS ^

check_control

Verifies that the control does the Form::Factory::Control::Role::AvailableChoices.

check

Verifies that the value or values set match one or more of the available values.

AUTHOR ^

Andrew Sterling Hanenkamp <hanenkamp@cpan.org>

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2015 by Qubling Software LLC.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

syntax highlighting: