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