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/);
Select Element.
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
Sebastian Riedel, sri@oook.de
sri@oook.de
This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself.
To install HTML::Widget, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTML::Widget
CPAN shell
perl -MCPAN -e shell install HTML::Widget
For more information on module installation, please visit the detailed CPAN module installation guide.