| Form::Factory::Control::SelectOne - A control for selecting a single item |
Form::Factory::Control::SelectOne - A control for selecting a single item
version 0.014
has_control popup_menu => ( control => 'select_one', options => { available_choices => [ Form::Factory::Control::Choice->new('one'), Form::Factory::Control::Choice->new('two'), Form::Factory::Control::Choice->new('three'), ], default_value => 'two', }, );
A select control that allows a single selection. A list of radio buttons or a drop-down box would be appropriate.
The defautl value of the control.
The value is stashed.
If value is set, use that. Otherwise, if default_value is set, use that. Otherwise, returns an empty string.
We have a useful current value when it is defined and the length of the string is greater than zero.
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::SelectOne - A control for selecting a single item |