Class: Glib::JsonUi::ViewBuilder::Fields::RadioGroup

Inherits:
AbstractField show all
Defined in:
app/helpers/glib/json_ui/view_builder/fields.rb

Instance Attribute Summary

Attributes inherited from JsonUiElement

#json, #page

Instance Method Summary collapse

Methods inherited from AbstractField

#autoValidate, #context, #created, #default_url_options, #determine_value, #hint, #hint_args, #label, #label_args, #name, #placeholder, #placeholder_args, #prop, #validation

Methods inherited from View

component_name

Methods inherited from JsonUiElement

#initialize, #props

Constructor Details

This class inherits a constructor from Glib::JsonUi::JsonUiElement

Instance Method Details

#value(value) ⇒ Object

Override



280
281
282
283
# File 'app/helpers/glib/json_ui/view_builder/fields.rb', line 280

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