Class: TaoForm::Inputs::StringInput

Inherits:
SimpleForm::Inputs::StringInput
  • Object
show all
Defined in:
lib/tao_form/inputs/string_input.rb

Instance Method Summary collapse

Instance Method Details

#input(wrapper_options = nil) ⇒ Object



5
6
7
8
9
10
11
12
13
14
# File 'lib/tao_form/inputs/string_input.rb', line 5

def input(wrapper_options = nil)
  origin_input = super

  template. :div, class: field_class do
    template.concat field_prefix
    template.concat origin_input
    template.concat field_suffix
    template.concat(clear_link) if search_input?
  end
end