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:12:08 +00:00
|
|
|
def input(context = nil)
|
2014-03-11 19:39:24 +00:00
|
|
|
merged_input_options = merge_wrapper_options(input_html_options, context)
|
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
|