CGI::Test::Form::Widget::Menu(3pm) | User Contributed Perl Documentation | CGI::Test::Form::Widget::Menu(3pm) |
CGI::Test::Form::Widget::Menu - Abstract representation of a menu
# Inherits from CGI::Test::Form::Widget
This class is the abstract representation of a menu from which one can choose one or several items, i.e. either a popup menu or a scrollable list (with possibly multiple selections).
There is an interface to query the selected items, get at the presented labels and associated values, and naturally "select()" or "unselect()" items.
The interface is the same as the one described in CGI::Test::Form::Widget, with the following additions:
Note that this takes a value, not a label.
There is an additional predicate to distinguish between a popup menu (single selection mandatory) from a scrolling list (multiple selection allowed, and may select nothing).
Although documented, those features are more targetted for internal use...
You should use the "select" and "unselect" convenience routines instead of calling this feature.
The original author is Raphael Manfredi.
Steven Hilton was long time maintainer of this module.
Current maintainer is Alexander Tokarev <tokarev@cpan.org>.
CGI::Test::Form::Widget(3), CGI::Test::Form::Widget::Menu::List(3), CGI::Test::Form::Widget::Menu::Popup(3).
2022-06-10 | perl v5.34.0 |