NAME
HTML::Widget::Element::Select - Select Element
SYNOPSIS
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/);
DESCRIPTION
Select Element.
METHODS
comment
Add a comment to this Element.
label
This label will be placed next to your Element.
size
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.
options
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.
selected
value (alias)
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
$self->render( $widget, $value, $errors )
AUTHOR
Sebastian Riedel, sri@oook.de
LICENSE
This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself.