Module: Adminterface::Extensions::Inputs::CheckBoxesInput
- Includes:
- Base, Base::Choices
- Included in:
- ActiveAdmin::Inputs::CheckBoxesInput
- Defined in:
- lib/adminterface/extensions/inputs/check_boxes_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
Instance Method Details
#choice_html(choice) ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/adminterface/extensions/inputs/check_boxes_input.rb', line 8 def choice_html(choice) checkbox_input(choice) + template.content_tag( :label, choice_label(choice), .merge(for: choice_input_dom_id(choice)) ) end |
#input_html_options ⇒ Object
16 17 18 |
# File 'lib/adminterface/extensions/inputs/check_boxes_input.rb', line 16 def super.merge(class: "form-check-input") end |
#label_html_options ⇒ Object
20 21 22 |
# File 'lib/adminterface/extensions/inputs/check_boxes_input.rb', line 20 def super.merge(class: "form-check-label") end |