lib/YuiRestClient/Widget/Tab.pm

NAME

YuiRestClient::Widget::Tab - Class representing a tab in the UI. It can be YDumbTab.

COPYRIGHT

Copyright 2021 SUSE LLC

SPDX-License-Identifier: FSFAP

AUTHORS

QE Yam <qe-yam at suse de>

SYNOPSIS

$self->{tab_cwm}->select("Kernel Settings");

return $self->{tb_boot_options}->selected_tab();

DESCRIPTION

Overview

A class to handle a tab.

{
  "class": "YDumbTab",
  "debug_label": "YDumbTab [tab1] [tab2] [tab3]",
  "hstretch": true,
  "icon_base_path": "",
  "id": "test_id",
  "items": [
     {
       "label": "tab1"
     },
     {
       "label": "tab2",
       "selected": true
     },
     {
       "label": "tab3"
     }
   ],
   "items_count": 3,
   "vstretch": true
}

Class and object methods

select($item) - sends an action to click the tab in the UI

selected_tab() - returns the label of the selected tab