Class: Shoelace::Rails::Ui::FormHelper::ShoelaceTextArea

Inherits:
ActionView::Helpers::Tags::TextArea
  • Object
show all
Defined in:
app/helpers/shoelace/rails/ui/form_helper.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#content_tag(tag_name, content, options) ⇒ Object



90
91
92
93
94
# File 'app/helpers/shoelace/rails/ui/form_helper.rb', line 90

def (tag_name, content, options)
  options[:value] = content if content.present?

  tag_name.to_s == 'textarea' ? super('sl-textarea', '', options) : super
end