Module: Adminterface::Extensions::Inputs::DatalistInput

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

Instance Method Summary collapse

Methods included from Base::Stringish

#input_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::Html

#input_html_options

Methods included from Base::Groupish

#input_html, #wrapper_html_options

Instance Method Details

#to_htmlObject



9
10
11
12
13
14
# File 'lib/adminterface/extensions/inputs/datalist_input.rb', line 9

def to_html
  @name = input_html_options[:id].gsub(/_id$/, "")
  input_wrapping do
    label_html << input_html << data_list_html
  end
end