HTML-FormBuilder
view release on metacpan or search on metacpan
lib/HTML/FormBuilder/Select.pod view on Meta::CPAN
=encoding utf8
=for comment POD_DERIVED_INDEX_GENERATED
The following documentation is automatically generated. Please do not edit
this file, but rather the original, inline with HTML::FormBuilder::Select
at lib/HTML/FormBuilder/Select.pm
(on the system that originally ran this).
If you do edit this file, and don't want your changes to be removed, make
sure you change the first line.
=cut
=head1 NAME
HTML::FormBuilder::Select - Select Element Handling for BOM Forms
=head1 Synopsis
my $select = HTML::FormBuilder::Select->new(
id => 'my-select',
name => 'my_select',
options => [{value => 'foo', text => 'Foo'}, {value => 'bar', text => 'Bar'}],
values => qw(foo),
};
$select->values('bar'); # set only 'bar'
$select->values('foo', 'bar'); # set only 'foo'
my $html = $select->widget_html;
my $hidden_input_html = $select->hidden_html;
=head1 PROPERTIES
=head2 id - id property of form element
=head2 name - name property of form element
=head2 options - option arrayref to generate options
=head2 values - values (by value) selected
=head2 value
Actually just a method that grabs the first value from values
=head1 METHODS
=head2 widget_html
=head2 hidden_html
=head2 is_str
=head1 INHERITED METHODS
=over 4
=item L<Moo::Object>
L<BUILDALL|Moo::Object/BUILDALL>, L<BUILDARGS|Moo::Object/BUILDARGS>, L<DEMOLISHALL|Moo::Object/DEMOLISHALL>, L<does|Moo::Object/does>, L<meta|Moo::Object/meta>
=back
( run in 2.692 seconds using v1.01-cache-2.11-cpan-39bf76dae61 )