lib/YuiRestClient/Widget/MenuCollection.pm

NAME

YuiRestClient::Widget::MenuCollection - handle YMenuButton, YMenuBar

COPYRIGHT

Copyright © 2020 SUSE LLC

SPDX-License-Identifier: FSFAP

AUTHORS

QE YaST <qa-sle-yast@suse.de>

SYNOPSIS

$self->{menu_btn_add}->select('&From List');

DESCRIPTION

Overview

Selects menu items by using their menu path description.

      {
        "class": "YMenuButton",
        "debug_label": "test",
        "icon_base_path": "",
        "id": "test_id",
        "items": [
          {
            "label": "button1"
          },
          {
            "label": "button2"
          },
          {
            "label": "button3"
          }
        ],
        "items_count": 3,
        "label": "button group"
        }

Class and object methods

select($path) - select menu item specified by path

Path descriptions can be strings like '&From List' or '&File|Open File...' for nested menu items.