Class: Jquard::Schemas::Fields::Textarea

Inherits:
Field
  • Object
show all
Defined in:
lib/jquard/schemas/fields/textarea.rb

Constant Summary

Constants inherited from Field

Field::UNSET

Instance Attribute Summary

Attributes inherited from Field

#name

Instance Method Summary collapse

Methods inherited from Field

#column_span, #column_span_full, #default, #disabled, #disabled?, #helper_text, #initialize, #label, make, #placeholder, #required, #required?

Methods included from ComponentDispatch

#component_class

Constructor Details

This class inherits a constructor from Jquard::Schemas::Fields::Field

Instance Method Details

#rows(count = nil) ⇒ Object



5
6
7
8
9
10
# File 'lib/jquard/schemas/fields/textarea.rb', line 5

def rows(count = nil)
  return @rows || 4 if count.nil?

  @rows = count
  self
end