The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Form::Factory::Control::Checkbox - the checkbox control

VERSION

version 0.022

SYNOPSIS

  has_control yes_no_box => (
      control => 'checkbox',
      options => {
          true_value  => 'Yes',
          false_value => 'No',
          is_true     => 1,
      },
  );

DESCRIPTION

This represents a toggle button, typically displayed as a checkbox. This control implements Form::Factory::Control, Form::Factory::Control::Role::BooleanValue, Form::Factory::Control::Role::Labeled, Form::Factory::Control::Role::ScalarValue.

METHODS

default_isa

Boolean values default to Bool.

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.