Class: Superform::Rails::Components::Textarea

Inherits:
Field
  • Object
show all
Defined in:
lib/superform/rails/components/textarea.rb

Instance Attribute Summary

Attributes inherited from Base

#dom, #field

Instance Method Summary collapse

Methods inherited from Field

#field_attributes

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