Class: Shoelace::Components::SlTextarea
- Inherits:
-
ActionView::Helpers::Tags::NumberField
- Object
- ActionView::Helpers::Tags::NumberField
- Shoelace::Components::SlTextarea
- Includes:
- ErrorWrappable
- Defined in:
- app/helpers/shoelace/components/sl_textarea.rb
Overview
:nodoc:
Instance Method Summary collapse
Methods included from ErrorWrappable
Instance Method Details
#render(&block) ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'app/helpers/shoelace/components/sl_textarea.rb', line 10 def render(&block) = @options.stringify_keys ["value"] = .fetch("value") { value_before_type_cast } ["invalid"] = ["data-invalid"] = "" if object_has_errors? add_default_name_and_id() @template_object.content_tag("sl-textarea", '', , &block) end |