NAME

HTML::FormBuilder::Select - Select Element Handling for BOM Forms

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;

PROPERTIES

id - id property of form element

name - name property of form element

options - option arrayref to generate options

values - values (by value) selected

value

Actually just a method that grabs the first value from values

METHODS

widget_html

hidden_html

is_str

INHERITED METHODS

Moo::Object

BUILDALL, BUILDARGS, DEMOLISHALL, does, meta