lib/YuiRestClient/Widget/Label.pm

NAME

YuiRestClient::Widget::Label - Handle YLabel, YLabel_Heading

COPYRIGHT

Copyright 2020 SUSE LLC

SPDX-License-Identifier: FSFAP

AUTHORS

QE Yam <qe-yam at suse de>

SYNOPSIS

$self->{rt_welcome}->text()

DESCRIPTION

Overview

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'.

Class and object methods

text() - return text property for object.

Returns the string from the object structure that has the key 'text'.