Class: FormProps::Inputs::CollectionRadioButtons::RadioButtonBuilder

Inherits:
Builder
  • Object
show all
Defined in:
lib/form_props/inputs/collection_radio_buttons.rb

Instance Method Summary collapse

Instance Method Details

#render(extra_html_options = {}) ⇒ Object



13
14
15
16
17
18
19
20
# File 'lib/form_props/inputs/collection_radio_buttons.rb', line 13

def render(extra_html_options = {})
  html_options = extra_html_options.merge(@input_html_options)
  html_options[:skip_default_ids] = false

  checkbox = RadioButton.new(@object_name, @method_name, @template_object, @value, html_options)
  checkbox.render(true)
  checkbox.json.label @text
end