logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

CGI::Test::Form::Widget::Menu::Popup - A popup menu

Authors

       The original author is Raphael Manfredi.

       Steven Hilton was long time maintainer of this module.

       Current maintainer is Alexander Tokarev <tokarev@cpan.org>.

Description

       This class models a popup menu, from which one item at most may be selected, and for which there is at
       least one item selected, i.e. where exactly one item is chosen.

       If no item was explicitely selected, "CGI::Test" arbitrarily chooses the first item in the popup (if not
       empty) and warns you via "warn".

Interface

       The interface is the same as the one described in CGI::Test::Form::Widget::Menu.

Name

       CGI::Test::Form::Widget::Menu::Popup - A popup menu

See Also

CGI::Test::Form::Widget::Menu(3).

perl v5.34.0                                       2022-06-10             CGI::Test::Form...et::Menu::Popup(3pm)

Synopsis

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

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

See Also