Class: SidebarField::TextAreaField

Inherits:
SidebarField show all
Defined in:
lib/sidebar_field.rb

Instance Attribute Summary

Attributes inherited from SidebarField

#default, #key, #options

Instance Method Summary collapse

Methods inherited from SidebarField

build, #canonicalize, class_for, #current_value, #initialize, #input_name, #label, #label_html, #line_html

Constructor Details

This class inherits a constructor from SidebarField

Instance Method Details

#input_html(sidebar) ⇒ Object



53
54
55
56
57
# File 'lib/sidebar_field.rb', line 53

def input_html(sidebar)
  html_options = { "rows" => "10", "class" => "form-control" }
    .update(options.stringify_keys)
  text_area_tag(input_name(sidebar), current_value(sidebar), html_options)
end