Class: Shoelace::Components::SlRadioButton
- Inherits:
-
ActionView::Helpers::Tags::RadioButton
- Object
- ActionView::Helpers::Tags::RadioButton
- Shoelace::Components::SlRadioButton
- Includes:
- ErrorWrappable
- Defined in:
- app/helpers/shoelace/components/sl_radio_button.rb
Overview
:nodoc:
Instance Method Summary collapse
Methods included from ErrorWrappable
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.stringify_keys ["value"] = @tag_value add_default_name_and_id_for_value(@tag_value, ) .delete("name") @template_object.content_tag('sl-radio', '', .except("type"), &block) end |