CGI::T...:Popup(3pm)

πŸ“¦
version 1.111 Β· 2 versions
  • 1.111 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 1.111 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– 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 🌈


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 πŸ’…βœ¨