Class: SidebarField::TextAreaField
- Inherits:
-
SidebarField
- Object
- SidebarField
- SidebarField::TextAreaField
- Defined in:
- lib/sidebar_field.rb
Instance Attribute Summary
Attributes inherited from SidebarField
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() = { "rows" => "10", "class" => "form-control" } .update(.stringify_keys) text_area_tag(input_name(), current_value(), ) end |