Class: Superform::Rails::Components::TextareaComponent
- Inherits:
-
FieldComponent
- Object
- BaseComponent
- FieldComponent
- Superform::Rails::Components::TextareaComponent
- Defined in:
- lib/superform/rails.rb
Instance Attribute Summary
Attributes inherited from BaseComponent
Instance Method Summary collapse
Methods inherited from FieldComponent
Methods inherited from BaseComponent
#field_attributes, #focus, #initialize
Constructor Details
This class inherits a constructor from Superform::Rails::Components::BaseComponent
Instance Method Details
#view_template(&content) ⇒ Object
328 329 330 331 |
# File 'lib/superform/rails.rb', line 328 def view_template(&content) content ||= Proc.new { dom.value } textarea(**attributes, &content) end |