Class: TextFieldRow
- Inherits:
-
TextInputRow
- Object
- BaseRow
- TextInputRow
- TextFieldRow
- 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
Attributes inherited from BaseRow
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_type ⇒ Object
5 6 7 |
# File 'lib/project/rows/text_field_row.rb', line 5 def cell_type TextFieldCell end |
#height ⇒ Object
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 = .fetch(:placeholder, 'Write something...') end |