Class: Shoelace::Rails::Ui::FormHelper::ShoelaceCollectionRadioButtons::RadioButtonBuilder

Inherits:
Builder
  • Object
show all
Defined in:
app/helpers/shoelace/rails/ui/form_helper.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#labelObject



163
164
165
# File 'app/helpers/shoelace/rails/ui/form_helper.rb', line 163

def label(*)
  text
end

#radio_button(extra_html_options = {}, &block) ⇒ Object



167
168
169
170
171
# File 'app/helpers/shoelace/rails/ui/form_helper.rb', line 167

def radio_button(extra_html_options = {}, &block)
  html_options = extra_html_options.merge(@input_html_options)
  html_options[:skip_default_ids] = false
  @template_object.sl_radio_button(@object_name, @method_name, @value, html_options, &block)
end