Class: Glib::JsonUi::ViewBuilder::Fields::RadioGroup
- Inherits:
-
AbstractField
- Object
- JsonUiElement
- View
- AbstractField
- Glib::JsonUi::ViewBuilder::Fields::RadioGroup
- Defined in:
- app/helpers/glib/json_ui/view_builder/fields.rb
Instance Attribute Summary
Attributes inherited from JsonUiElement
Instance Method Summary collapse
-
#value(value) ⇒ Object
Override.
Methods inherited from AbstractField
#created, #hint, #hint_args, #label, #label_args, #name, #placeholder, #placeholder_args, #prop
Methods inherited from JsonUiElement
Constructor Details
This class inherits a constructor from Glib::JsonUi::JsonUiElement
Instance Method Details
#value(value) ⇒ Object
Override
212 213 214 215 |
# File 'app/helpers/glib/json_ui/view_builder/fields.rb', line 212 def value(value) # Convert to string to make sure the value matches with Radio#value @value = value.to_s if value != Glib::Value::DEFAULT end |