Module: Adminterface::Extensions::Inputs::RadioInput
- Includes:
- Base, Base::Choices
- Included in:
- ActiveAdmin::Inputs::RadioInput
- Defined in:
- lib/adminterface/extensions/inputs/radio_input.rb
Instance Method Summary collapse
Methods included from Base::Choices
#choice_wrapping_html_options, #legend_html
Methods included from Base::ActiveAdminConfig
#active_admin_config, #inputs_config
Methods included from Base::Pluginish
#plugin?, #plugins_configs, #plugins_options
Methods included from Base::Wrapping
#input_wrapping, #input_wrapping_html, #wrapper_classes
Methods included from Base::Html
Instance Method Details
#choice_html(choice) ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/adminterface/extensions/inputs/radio_input.rb', line 8 def choice_html(choice) radio_html(choice) + template.content_tag( :label, choice_label(choice), .merge(for: choice_input_dom_id(choice)) ) end |
#label_html_options ⇒ Object
16 17 18 |
# File 'lib/adminterface/extensions/inputs/radio_input.rb', line 16 def super.merge(class: "form-check-label") end |