HTML::Widget::Element::Select - Select Element
my $e = $widget->element( 'Select', 'foo' ); $e->comment('(Required)'); $e->label('Foo'); $e->size(23); $e->options( foo => 'Foo', bar => 'Bar' ); $e->selected(qw/foo bar/);
Add a comment to this Element.
This label will be placed next to your Element.
The size of a select element determines whether it will be displayed as a dropdown (size = 1), or a multi-select list element. The default is 1.
A list of options in key => value format. Each key is the unique id of an option tag, and its corresponding value is the text displayed in the element.
A list of keys (unique option ids) which will be pre-set to "selected". Can also be addressed as value for consistency with the other elements
This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself.