Class: CWM::SelectionBox
- Inherits:
-
AbstractWidget
- Object
- AbstractWidget
- CWM::SelectionBox
- Includes:
- ItemsSelection
- Defined in:
- library/cwm/src/lib/cwm/common_widgets.rb
Overview
Widget representing selection box to select value. The AbstractWidget#label method is mandatory.
Instance Attribute Summary
Attributes inherited from AbstractWidget
#handle_all_events, #widget_id
Instance Method Summary collapse
-
#value ⇒ String
ID of the selected item.
- #value=(val) ⇒ Object
Methods included from ItemsSelection
#change_items, #cwm_definition, #items
Methods inherited from AbstractWidget
#cleanup, #cwm_definition, #disable, #enable, #enabled?, #handle, #help, #init, #label, #opt, #store, #validate, widget_type=
Instance Method Details
#value ⇒ String
200 201 202 |
# File 'library/cwm/src/lib/cwm/common_widgets.rb', line 200 def value Yast::UI.QueryWidget(Id(), :CurrentItem) end |
#value=(val) ⇒ Object
205 206 207 |
# File 'library/cwm/src/lib/cwm/common_widgets.rb', line 205 def value=(val) Yast::UI.ChangeWidget(Id(), :CurrentItem, val) end |