Class: Trestle::Form::Fields::TextArea

Inherits:
FormControl show all
Defined in:
lib/trestle/form/fields/text_area.rb

Instance Attribute Summary

Attributes inherited from Trestle::Form::Field

#block, #builder, #name, #options, #template

Instance Method Summary collapse

Methods inherited from FormControl

#input_group, #input_group_addon, #normalize_options!, #render

Methods inherited from Trestle::Form::Field

#errors, #form_group, #initialize, #normalize_options!, #readonly?, #render

Constructor Details

This class inherits a constructor from Trestle::Form::Field

Instance Method Details

#defaultsObject



2
3
4
# File 'lib/trestle/form/fields/text_area.rb', line 2

def defaults
  super.merge(rows: 5)
end

#fieldObject



6
7
8
# File 'lib/trestle/form/fields/text_area.rb', line 6

def field
  builder.raw_text_area(name, options)
end