lib/YuiRestClient/Widget/ComboBox.pm

NAME

YuiRestClient::Widget::ComboBox - handle a ComboBox in the UI

COPYRIGHT

Copyright 2020 SUSE LLC

SPDX-License-Identifier: FSFAP

AUTHORS

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

SYNOPSIS

$self->{cb_language}->items();
$self->{cb_language}->select($item);
$self->{cb_mount_point}->set($mount_point);
$self->{cb_language}->value();
$self->{cb_filesystem}->is_enabled();

DESCRIPTION

Overview

Class representing a ComboBox in the UI. It can be YComboBox.

{
  "class": "YComboBox",
  "debug_label": "NFS Version",
  "icon_base_path": "",
  "id": "nfs_version",
  "items": [
    {
      "label": "Any (Highest Available)",
      "selected": true
    },
    {
      "label": "Force NFSv3"
    }
  ],
  "items_count": 5,
  "label": "NFS &Version",
  "value": "Any (Highest Available)"
}

Class and object methods

items() - returns a list of ComboBox items

select($item - selects an item in the ComboBox

set($item) - enters text into the ComboBox

value() - returns the "value" property of the ComboBox

is_enabled() - returns if the ComboBox is enabled or not