2011-09-03 09:13:29 +00:00
|
|
|
module SimpleForm
|
|
|
|
module Inputs
|
|
|
|
class TextInput < Base
|
2011-12-04 12:29:59 +00:00
|
|
|
enable :placeholder, :maxlength
|
|
|
|
|
2014-03-11 22:41:25 +00:00
|
|
|
def input(wrapper_options = nil)
|
|
|
|
merged_input_options = merge_wrapper_options(input_html_options, wrapper_options)
|
2014-03-11 18:22:45 +00:00
|
|
|
|
|
|
|
@builder.text_area(attribute_name, merged_input_options)
|
2011-09-03 09:13:29 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|