YuiRestClient::Widget::Label - Handle YLabel, YLabel_Heading
Copyright 2020 SUSE LLC
SPDX-License-Identifier: FSFAP
QE Yam <qe-yam at suse de>
$self->{rt_welcome}->text()
Returns text value for the label.
If the JSON looks like this:
{
"class": "YLabel",
"debug_label": "short message",
"label": "test label",
"text": "text label"
}
Then {app}->label({label => 'test label'})->text() will return 'text label'.
text() - return text property for object.
Returns the string from the object structure that has the key 'text'.