Sha256: 5490b8918b02dc59bc4697587cbffd3375dd7cd49babed38296f2fe05312abb6
Contents?: true
Size: 674 Bytes
Versions: 3
Compression:
Stored size: 674 Bytes
Contents
motion_require '../table/table_delegate' module MotionPrime class FormDelegate < TableDelegate def textField(text_field, shouldChangeCharactersInRange:range, replacementString:string) limit = (table_section.class.text_field_limits || {}).find do |field_name, limit| table_section.view("#{field_name}:input") == text_field end.try(:last) return true unless limit table_section.allow_string_replacement?(text_field, limit, range, string) end def textView(text_view, shouldChangeTextInRange:range, replacementText:string) textField(text_view, shouldChangeCharactersInRange:range, replacementString:string) end end end
Version data entries
3 entries across 3 versions & 1 rubygems