Module: StimulusPlumbers::Form::Fields::Inputs::Radio
- Included in:
- Builder
- Defined in:
- lib/stimulus_plumbers/form/fields/inputs/radio.rb
Instance Method Summary collapse
- #collection_radio_buttons(attribute, collection, value_method, text_method, options = {}, html_options = {}, &block) ⇒ Object
- #radio_button(attribute, tag_value, options = {}) ⇒ Object
Instance Method Details
#collection_radio_buttons(attribute, collection, value_method, text_method, options = {}, html_options = {}, &block) ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/stimulus_plumbers/form/fields/inputs/radio.rb', line 13 def ( attribute, collection, value_method, text_method, = {}, = {}, &block ) item_opts = (theme.resolve(:form_field_input_radio), ) if block_given? super(attribute, collection, value_method, text_method, , item_opts, &block) else super(attribute, collection, value_method, text_method, , item_opts) do |builder| (builder, theme.resolve(:form_field_radio_label)) end end end |
#radio_button(attribute, tag_value, options = {}) ⇒ Object
8 9 10 11 |
# File 'lib/stimulus_plumbers/form/fields/inputs/radio.rb', line 8 def (attribute, tag_value, = {}) = (theme.resolve(:form_field_input_radio), ) super(attribute, tag_value, ) end |