Class: Shoelace::Rails::Ui::FormHelper::ShoelaceRadioButton
- Inherits:
-
ActionView::Helpers::Tags::RadioButton
- Object
- ActionView::Helpers::Tags::RadioButton
- Shoelace::Rails::Ui::FormHelper::ShoelaceRadioButton
- Defined in:
- app/helpers/shoelace/rails/ui/form_helper.rb
Overview
:nodoc:
Instance Method Summary collapse
Instance Method Details
#render(&block) ⇒ Object
151 152 153 154 155 156 157 158 |
# File 'app/helpers/shoelace/rails/ui/form_helper.rb', line 151 def render(&block) = @options.stringify_keys ["value"] = @tag_value ["checked"] = "checked" if input_checked?() add_default_name_and_id_for_value(@tag_value, ) @template_object.content_tag('sl-radio', '', .except("type"), &block) end |