Form::Factory::Control::Button - The button control
version 0.008
has_control a_button => ( control => 'button', options => { label => 'My Button', }, );
A control representing a submit button. This control implements Form::Factory::Control, Form::Factory::Control::Role::BooleanValue, Form::Factory::Control::Role::Labeled, Form::Factory::Control::Role::ScalarValue.
See Form::Factory::Control::Role::BooleanValue. By default, this value is set to the label. If you change this to something else, the button might not work correctly anymore.
The current value expects the "true_value" to be passed to set the "is_true" in Form::Factory::Control::Role::BooleanValue attribute. This method returns either the "true_value" or "false_value" in Form::Factory::Control::Role::BooleanValue.
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.