HTML::FormFu::Element::_Group - grouped form field base-class
Base class for HTML::FormFu::Element::Radiogroup and HTML::FormFu::Element::Select fields.
Arguments: \@options
--- elements: - type: select name: foo options: - [ 01, January ] - [ 02, February ] - value: 03 label: March attributes: style: highlighted - [ 04, April ]
Use to set the list of items in the select menu / radiogroup.
It's arguments must be an array-ref of items. Each item may be an array ref of the form [ $value, $label ] or a hash-ref of the form { value => $value, label => $label }. Each hash-ref may also have the keys attributes and label_attributes.
[ $value, $label ]
{ value => $value, label => $label }
attributes
label_attributes
Arguments: \@values
--- elements: - type: radiogroup name: foo values: - jan - feb - mar - apr
A more concise alternative to "options". Use to set the list of values in the select menu / radiogroup.
It's arguments must be an array-ref of values. The labels used are the result of ucfirst($value).
ucfirst($value)
--- elements: - type: select name: foo value_range: - "" - 1 - 12
Similar to "values", but the last 2 values are expanded to a range. Any preceeding values are used literally, allowing the common empty first item in select menus.
Is a sub-class of, and inherits methods from HTML::FormFu::Element::_Field, HTML::FormFu::Element
HTML::FormFu::FormFu
Carl Franks, cfranks@cpan.org
cfranks@cpan.org
This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself.
To install HTML::FormFu, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTML::FormFu
CPAN shell
perl -MCPAN -e shell install HTML::FormFu
For more information on module installation, please visit the detailed CPAN module installation guide.