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

#input_html_optionsObject



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

def input_html_options
  super.merge(class: "form-check-input")
end

#label_html_optionsObject



20
21
22
# File 'lib/adminterface/extensions/inputs/check_boxes_input.rb', line 20

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