Class: Locomotive::ColorInput

Inherits:
SimpleForm::Inputs::StringInput
  • Object
show all
Defined in:
app/inputs/locomotive/color_input.rb

Instance Method Summary collapse

Instance Method Details

#html5?Boolean

Returns:


13
14
15
# File 'app/inputs/locomotive/color_input.rb', line 13

def html5?
  false
end

#input(wrapper_options) ⇒ Object


4
5
6
7
8
9
10
11
# File 'app/inputs/locomotive/color_input.rb', line 4

def input(wrapper_options)
  <<-HTML
    <div class="input-group">
      #{super}
      <span class="input-group-addon"><i></i></span>
    </div>
  HTML
end