Class: Shoelace::Components::SlRadioButton

Inherits:
ActionView::Helpers::Tags::RadioButton
  • Object
show all
Includes:
ErrorWrappable
Defined in:
app/helpers/shoelace/components/sl_radio_button.rb

Overview

:nodoc:

Instance Method Summary collapse

Methods included from ErrorWrappable

#error_wrapping

Instance Method Details

#render(&block) ⇒ Object



10
11
12
13
14
15
16
17
# File 'app/helpers/shoelace/components/sl_radio_button.rb', line 10

def render(&block)
  options = @options.stringify_keys
  options["value"]   = @tag_value
  add_default_name_and_id_for_value(@tag_value, options)
  options.delete("name")

  @template_object.('sl-radio', '', options.except("type"), &block)
end