| Form-Factory documentation | view source | Contained in the Form-Factory distribution. |
Form::Factory::Control::Checkbox - the checkbox control
version 0.020
has_control yes_no_box => (
control => 'checkbox',
options => {
true_value => 'Yes',
false_value => 'No',
is_true => 1,
},
);
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.
Boolean values default to Bool.
Andrew Sterling Hanenkamp <hanenkamp@cpan.org>
Copyright 2009 Qubling Software LLC.
This library is free software. You can redistribute it and/or modify it under the same terms as Perl itself.
| Form-Factory documentation | view source | Contained in the Form-Factory distribution. |