CGI::T...:Popup(3pm)
π NAME π
CGI::Test::Form::Widget::Menu::Popup β it's a popup menu bestie, that's the whole vibe π
β¨ SYNOPSIS β¨
# Inherits from CGI::Test::Form::Widget::Menu
# $form is a CGI::Test::Form
my $action = $form->menu_by_name("action");
$action->select("reboot");
okay so you grab the menu by name, you pick an item, done. slay π
π¦ DESCRIPTION π¦
So this class models a popup menu. And the rules of the popup menu game are: at most one item may be selected, and also there is at least one item selected β which literally means exactly one item is chosen. No zero, no two, just one. Periodt. β¨
And here's the tea π β if no item was explicitely selected, CGI::Test will just arbitrarily choose the first item in the popup (as long as it's not empty, obviously π) and it will hit you with a warn about it. Not me getting voluntold which option I picked π
ngl bestie, that default pick is a warning, not a suggestion. warn is telling you it chose for you. π
π INTERFACE π
The interface is the exact same one as the one described in CGI::Test::Form::Widget::Menu. Same energy, same methods, no notes. π«Ά
πΈ AUTHORS πΈ
- The original author is Raphael Manfredi. π
- Steven Hilton was long time maintainer of this module. π
- Current maintainer is Alexander Tokarev
<tokarev@cpan.org>. β
π SEE ALSO π
CGI::Test::Form::Widget::Menu(3)β the parent, the blueprint, the main character this one takes after π
okay that's the whole page bestie, no cap. π§ This was CGI::Test::Form::Widget::Menu::Popup(3pm) from the User Contributed Perl Documentation, running on perl v5.34.0, dated 2022-06-10. mwah, go select something π
β¨
π¦ where this page comes from
- debian bookworm: libcgi-test-perl 1.111-2 Β· Artistic-1.0-Perl
- debian trixie: libcgi-test-perl 1.111-2 Β· Artistic-1.0-Perl
- ubuntu noble: libcgi-test-perl 1.111-2 Β· Artistic-1.0-Perl
- ubuntu resolute: libcgi-test-perl 1.111-2 Β· Artistic-1.0-Perl
- ubuntu stonking: libcgi-test-perl 1.111-2 Β· Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms