Method: CWM::ValueBasedWidget#value

Defined in:
library/cwm/src/lib/cwm/common_widgets.rb

#valueObject

Get widget value

Calling this method only make sense when the widget is displayed (see #displayed?).

Returns:

  • (Object)

    a value according to specific widget type



34
35
36
# File 'library/cwm/src/lib/cwm/common_widgets.rb', line 34

def value
  Yast::UI.QueryWidget(Id(widget_id), :Value)
end