Class: XLFormTextFieldCell

Inherits:
Object
  • Object
show all
Defined in:
lib/ProMotion/XLForm/xl_form_patch.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#keyboard_typeObject

Returns the value of attribute keyboard_type.



165
166
167
# File 'lib/ProMotion/XLForm/xl_form_patch.rb', line 165

def keyboard_type
  @keyboard_type
end

Instance Method Details

#old_updateObject



167
# File 'lib/ProMotion/XLForm/xl_form_patch.rb', line 167

alias :old_update :update

#updateObject



169
170
171
172
173
# File 'lib/ProMotion/XLForm/xl_form_patch.rb', line 169

def update
  old_update

  self.textField.keyboardType = self.keyboard_type if self.keyboard_type
end