Module: Adminterface::Extensions::Inputs::CountryInput

Includes:
Base, Base::Groupish
Included in:
ActiveAdmin::Inputs::CountryInput
Defined in:
lib/adminterface/extensions/inputs/country_input.rb

Instance Method Summary collapse

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::Labelling

#label_html_options

Methods included from Base::Groupish

#wrapper_html_options

Instance Method Details

#input_htmlObject



14
15
16
# File 'lib/adminterface/extensions/inputs/country_input.rb', line 14

def input_html
  builder.country_select(method, priority_countries, input_options, input_html_options)
end

#input_html_optionsObject



18
19
20
21
# File 'lib/adminterface/extensions/inputs/country_input.rb', line 18

def input_html_options
  opts = options[:input_html] || {}
  super.merge(class: "form-select #{opts[:class]}".squish)
end

#to_htmlObject



8
9
10
11
12
# File 'lib/adminterface/extensions/inputs/country_input.rb', line 8

def to_html
  input_wrapping do
    label_html << input_html
  end
end