Form::Factory::Control::Checkbox - the checkbox control
version 0.001
has_control yes_no_box => ( control => 'checkbox', options => { checked_value => 'Yes', unchecked_value => 'No', is_checked => 1, }, );
This represents a toggle button, typically displayed as a checkbox. This control implements Form::Factory::Control, Form::Factory::Control::Role::Labeled, Form::Factory::Control::Role::ScalarValue.
The string value the control should have when toggled to the checked or on position.
The string value the control should have when toggled to the unchecked or off position.
Whether or not the checkbox is currently toggeld to the checked or on position or not.
The "is_checked" attribute is stashed.
Returns the "checked_value" if "is_checked" is true. Returns "unchecked_value" otherwise.
Andrew Sterling Hanenkamp <hanenkamp@cpan.org>
<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.
To install Form::Factory, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Form::Factory
CPAN shell
perl -MCPAN -e shell install Form::Factory
For more information on module installation, please visit the detailed CPAN module installation guide.