Class: TextFieldRow

Inherits:
TextInputRow show all
Defined in:
lib/project/rows/text_field_row.rb

Constant Summary

Constants inherited from TextInputRow

TextInputRow::EMAIL_REGEX, TextInputRow::URL_REGEX

Instance Attribute Summary

Attributes inherited from TextInputRow

#value

Attributes inherited from BaseRow

#key, #label, #options

Instance Method Summary collapse

Methods inherited from TextInputRow

#capitalize?, #did_end_editing, #initialize, #listen, #setup_validation, #textFieldDidEndEditing, #valid?, #validation_rules

Methods inherited from BaseRow

#cell_identifier, #dealloc, #has_value?, #initialize, #notification_center, #observe, #post

Constructor Details

This class inherits a constructor from TextInputRow

Instance Method Details

#cell_typeObject



5
6
7
# File 'lib/project/rows/text_field_row.rb', line 5

def cell_type
  TextFieldCell
end

#heightObject



9
10
11
# File 'lib/project/rows/text_field_row.rb', line 9

def height
  100
end

#update_cell(cell) ⇒ Object



13
14
15
16
17
# File 'lib/project/rows/text_field_row.rb', line 13

def update_cell(cell)
  super

  cell.placeholder = options.fetch(:placeholder, 'Write something...')
end