Class: Storefront::Components::Form::Textarea
- Defined in:
- lib/storefront/components/form/inputs/textarea.rb
Overview
attributes: maxlength, placeholder, required, wrap, readonly
Constant Summary
Constants included from Helpers::ContentHelper
Helpers::ContentHelper::SCOPES, Helpers::ContentHelper::SCOPES_WITH_NAMESPACE, Helpers::ContentHelper::SCOPES_WITH_NAMESPACE_AND_NESTED_MODEL, Helpers::ContentHelper::SCOPES_WITH_NESTED_MODEL
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Textarea
constructor
A new instance of Textarea.
- #textarea_input(options = {}) ⇒ Object (also: #text_input)
Methods inherited from Input
find, registry, #render, resolves?
Methods included from Helpers::DomHelper
#aria, #clone_attributes, #dom, #index_class, #merge_class, #merge_class!, #page, #resource_to_title, #title_widget, #title_widget_options
Methods included from Helpers::ContentHelper
#encoded_contents, #font_face_data_uri, #html5_time, #read_binary_file, #read_image_size, #rendered_text, #sanitize, #t?
Methods inherited from Base
#component_name, #extract_classes!, #extract_options!, #inside?, #pointer, #render, #render_with_pointer, #to_s
Constructor Details
#initialize(options = {}) ⇒ Textarea
Returns a new instance of Textarea.
8 9 10 11 12 |
# File 'lib/storefront/components/form/inputs/textarea.rb', line 8 def initialize( = {}) super @value = attributes.delete(:value) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Storefront::Components::Base
Instance Method Details
#textarea_input(options = {}) ⇒ Object Also known as: text_input
14 15 16 |
# File 'lib/storefront/components/form/inputs/textarea.rb', line 14 def textarea_input( = {}) base_input :textarea, value, end |