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



289
290
291
292
# File 'app/helpers/glib/json_ui/view_builder/fields.rb', line 289

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