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

#input_html_options

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.(
      :label, choice_label(choice),
      label_html_options.merge(for: choice_input_dom_id(choice))
    )
end

#label_html_optionsObject



16
17
18
# File 'lib/adminterface/extensions/inputs/radio_input.rb', line 16

def label_html_options
  super.merge(class: "form-check-label")
end