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
#autoValidate, #context, #created, #default_url_options, #determine_value, #disableDirtyCheck, #hint, #hint_args, #label, #label_args, #name, #placeholder, #placeholder_args, #prop, #validation
Methods inherited from View
Methods inherited from JsonUiElement
Constructor Details
This class inherits a constructor from Glib::JsonUi::JsonUiElement
Instance Method Details
#value(value) ⇒ Object
Override
330 331 332 333 |
# File 'app/helpers/glib/json_ui/view_builder/fields.rb', line 330 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 |