Module: StimulusPlumbers::Form::Fields::Inputs::TextArea
- Included in:
- Builder
- Defined in:
- lib/stimulus_plumbers/form/fields/inputs/text_area.rb
Instance Method Summary collapse
Instance Method Details
#text_area(attribute, options = {}) ⇒ Object
8 9 10 11 12 13 14 15 16 17 |
# File 'lib/stimulus_plumbers/form/fields/inputs/text_area.rb', line 8 def text_area(attribute, = {}) Field.new(@template, **).render( object, attribute, input_id: field_id(attribute) ) do |html_opts, opts, error| = (opts, html_opts, field_theme(:form_textarea, error: error)) super(attribute, ) end end |