| Form::Factory::Control::Checkbox - the checkbox control |
Form::Factory::Control::Checkbox - the checkbox control
version 0.014
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 the Form::Factory::Control manpage, the Form::Factory::Control::Role::BooleanValue manpage, the Form::Factory::Control::Role::Labeled manpage, the Form::Factory::Control::Role::ScalarValue manpage.
The is_true attribute is stashed.
Boolean values default to Bool.
Returns the true_value if is_true is true. Returns false_value otherwise.
If the control is neither true nor false, it returns undef.
If the value is true or false, it has a current value. Otherwise, it does not.
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::Control::Checkbox - the checkbox control |