Class: Superform::Rails::Components::Textarea
- Defined in:
- lib/superform/rails/components/textarea.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Field
Methods inherited from Base
#field_attributes, #focus, #initialize
Constructor Details
This class inherits a constructor from Superform::Rails::Components::Base
Instance Method Details
#view_template(&content) ⇒ Object
5 6 7 8 |
# File 'lib/superform/rails/components/textarea.rb', line 5 def view_template(&content) content ||= Proc.new { dom.value } textarea(**attributes, &content) end |