CGI::T...u::List(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::List β€” it's a scrolling list menu, bestie. Like, a whole lil dropdown-but-make-it-a-list situation. πŸ’…

Oh and the manual page itself is chilling under the name CGI::T...u::List(3pm) (they really did abbreviate her name like that, no cap 😭) β€” it's part of the User Contributed Perl Documentation, iykyk.


✨ SYNOPSIS ✨

# Inherits from CGI::Test::Form::Widget::Menu
# $form is a CGI::Test::Form

my $action = $form->menu_by_name("action");
$action->unselect("allow-gracetime");
$action->select("reboot");

See how easy that is?? Grab the menu by name, unselect one thing, select another. Main character energy tbh. 🫢


πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so, this class is the model for a scrolling list menu β€” you know the vibe, the kind where you can select items and also unselect them. It literally just models that. That's the whole job. And it ate. πŸ’–


πŸ‘‘ INTERFACE πŸ‘‘

The interface is the same as the one described over in CGI::Test::Form::Widget::Menu, except β€” plot twist β€” there's one extra attribute:

  • "size" β€” the amount of choices displayed. That's it, that's the attribute. It's giving "how much of the list do you wanna see at once". 🌈

πŸ’œ AUTHORS πŸ’œ

  • The original author is Raphael Manfredi.
  • Steven Hilton was long time maintainer of this module.
  • Current maintainer is Alexander Tokarev <tokarev@cpan.org>.

Respect to the whole lineage honestly, three whole eras of maintainership, iconic. πŸ‘‘


πŸŽ€ SEE ALSO πŸŽ€


fr fr go read the parent class first, it's where all the actual interface lives. This page is just the scrolling-list-flavoured remix. πŸ“

perl v5.34.0 Β· 2022-06-10 β€” that's the source and date of this page, and that's a wrap bestie, mwah πŸ’…βœ¨πŸŒΈ