YuiRestClient::Widget::ComboBox - handle a ComboBox in the UI
Copyright 2020 SUSE LLC
SPDX-License-Identifier: FSFAP
QE Yam <qe-yam at suse de>
$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();
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)"
}
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