Class: SimpleFormExtension::Inputs::ColorInput

Inherits:
SimpleForm::Inputs::Base
  • Object
show all
Defined in:
lib/simple_form_extension/inputs/color_input.rb

Instance Method Summary collapse

Instance Method Details

#input(wrapper_options = nil) ⇒ Object



4
5
6
7
8
9
10
11
12
# File 'lib/simple_form_extension/inputs/color_input.rb', line 4

def input(wrapper_options = nil)
  input_html_options[:class] << "colorpicker form-control"
  "<div class=\"input-group color\">
    #{@builder.text_field(attribute_name, input_html_options)}
    <span class=\"input-group-addon\">
      <i style=\"background-color: ;\"></i>
    </span>
  </div>".html_safe
end