| Form::Factory::Control::Value - A read-only value control |
Form::Factory::Control::Value - A read-only value control
version 0.014
has_control preset_value => ( control => 'value', options => { label => 'Preset', is_visible => 1, value => 'Neo', }, );
A read-only value. These may be displayed in the form or just passed through the stash. They might be passed by form submission as well (depending on the interface, but this should be avoided).
This control implements the Form::Factory::Control manpage, the Form::Factory::Control::Role::Labeled manpage, the Form::Factory::Control::Role::ScalarValue manpage.
Set to true if the read-only value should be displayed.
The value is stashed.
Returns the value.
We always have a useful value here since we require one to be set.
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::Value - A read-only value control |