Module: Adminterface::Extensions::Inputs::ColorInput

Includes:
Base, Base::Groupish, Base::Stringish
Included in:
ActiveAdmin::Inputs::ColorInput
Defined in:
lib/adminterface/extensions/inputs/color_input.rb

Instance Method Summary collapse

Methods included from Base::Stringish

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

#label_html_options

Methods included from Base::Groupish

#wrapper_html_options

Instance Method Details

#input_htmlObject



9
10
11
# File 'lib/adminterface/extensions/inputs/color_input.rb', line 9

def input_html
  builder.color_field(method, input_html_options)
end

#input_html_optionsObject



13
14
15
16
17
# File 'lib/adminterface/extensions/inputs/color_input.rb', line 13

def input_html_options
  opts = super
  opts[:class] = "#{opts[:class]} form-control-color".squish
  opts
end