IWL::Combo - a combo box widget
IWL::Error -> IWL::Object -> IWL::Widget -> IWL::Input -> IWL::Combo
The Combo widget provides a wrapper for the <select> markup tag.
IWL::Combo->new ([%ARGS])
Where %ARGS is an optional hash parameter with with key-values corresponding to the attributes that a regular <select> markup would have.
Appends an option to the combobox.
Parameter: TEXT - the text to be appended, VALUE - the value that will be passed along, SELECTED - true if the option is selected
Prepends an option to the combobox.
Parameter: TEXT - the text to be prepended, VALUE - the value that will be passed along, SELECTED - true if the option is selected
Sets whether the combo box will have multiple selection
Parameters: BOOL - true if the combo box should be multiple-selection enabled
Returns true if the combo is set to support multiple selection
Update the IWL::Stash STATE according to the combo state, ie. reflect the selected and unselected entries.
Note that this method does not work absolutely correct if you have multiple HTML input elements with the same name (attribute). It will update STATE as if it was the only element in the entire form.
Copyright (c) 2006-2007 Viktor Kojouharov. All rights reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perldoc perlartistic.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
1 POD Error
The following errors were encountered while parsing the POD:
You forgot a '=back' before '=head1'
To install IWL, copy and paste the appropriate command in to your terminal.
cpanm
cpanm IWL
CPAN shell
perl -MCPAN -e shell install IWL
For more information on module installation, please visit the detailed CPAN module installation guide.