SurveyTextView Class Reference
Inherits from | UITextView |
Declared in | SurveyTextView.h |
Overview
SurveyTextView
is a subclass of UITextView
, designed to work with SurveyForms and provide block based delegate methods.
Tasks
TextField for use with Survey forms.
-
validationBlock
The block used to validate the value of a field, when defined in a subclass.
property -
didBeginEditing
Callback when a fields
propertybegin editing
delegate is triggered. -
didEndEditing
Callback when a fields
propertyend editing
delegate is triggered. -
shouldBeginEditing
Callback when a fields
propertyshould begin editing
delegate is triggered. -
shouldEndEditing
Callback when a fields
propertyshould end editing
delegate is triggered. -
shouldChangeCharactersInRange
Callback when a fields
propertyshould change characters in range
delegate is triggered. -
shouldClear
Callback when a fields
propertyshould clear
delegate is triggered. -
shouldReturn
Callback when a fields
propertyshould return
delegate is triggered. -
onError
Callback that is triggered when the field fails validation.
property -
didChange
Callback when a fields
propertydid change
delegate is triggered. -
didChangeSelection
Callback when a fields
propertydid change selection
delegate is triggered. -
form
Access to the fields parent form.
property -
placeholder
The placeholder value used when the TextView is empty.
property -
title
Field title
property -
validationOptions
Array of strings that define what validation to use on the field’s value.
property -
errorMessages
Dictionary of messages to use with specific validation types.
property -
errors
A list of errors the field has.
property -
– isValid
Checks and returns if the field’s value passes it’s provided validation types.
Properties
didBeginEditing
Callback when a fields begin editing
delegate is triggered.
@property (copy, nonatomic) SurveyTextFieldDidBlock didBeginEditing
Discussion
Callback when a fields begin editing
delegate is triggered.
@discussion Block based version of the delegate with the same name.
Declared In
SurveyTextView.h
didChange
Callback when a fields did change
delegate is triggered.
@property (copy, nonatomic) SurveyTextFieldDidBlock didChange
Discussion
Callback when a fields did change
delegate is triggered.
@discussion Block based version of the delegate with the same name.
Declared In
SurveyTextView.h
didChangeSelection
Callback when a fields did change selection
delegate is triggered.
@property (copy, nonatomic) SurveyTextFieldDidBlock didChangeSelection
Discussion
Callback when a fields did change selection
delegate is triggered.
@discussion Block based version of the delegate with the same name.
Declared In
SurveyTextView.h
didEndEditing
Callback when a fields end editing
delegate is triggered.
@property (copy, nonatomic) SurveyTextFieldDidBlock didEndEditing
Discussion
Callback when a fields end editing
delegate is triggered.
@discussion Block based version of the delegate with the same name.
Declared In
SurveyTextView.h
errorMessages
Dictionary of messages to use with specific validation types.
@property (strong, nonatomic) NSMutableDictionary *errorMessages
Discussion
Dictionary of messages to use with specific validation types.
@discussion Uses the format: @{SurveyValidationRequired : @“Oh, this field is required”}
Declared In
SurveyTextView.h
errors
A list of errors the field has.
@property (readonly, nonatomic) NSDictionary *errors
Discussion
A list of errors the field has.
Declared In
SurveyTextView.h
form
Access to the fields parent form.
@property (strong, nonatomic) SurveyForm *form
Discussion
Access to the fields parent form.
Declared In
SurveyTextView.h
onError
Callback that is triggered when the field fails validation.
@property (copy, nonatomic) SurveyOnFieldErrorBlock onError
Discussion
Callback that is triggered when the field fails validation.
Declared In
SurveyTextView.h
placeholder
The placeholder value used when the TextView is empty.
@property (copy, nonatomic) NSString *placeholder
Discussion
The placeholder value used when the TextView is empty.
Declared In
SurveyTextView.h
shouldBeginEditing
Callback when a fields should begin editing
delegate is triggered.
@property (copy, nonatomic) SurveyTextFieldShouldBlock shouldBeginEditing
Discussion
Callback when a fields should begin editing
delegate is triggered.
@discussion Block based version of the delegate with the same name.
Declared In
SurveyTextView.h
shouldChangeCharactersInRange
Callback when a fields should change characters in range
delegate is triggered.
@property (copy, nonatomic) SurveyShouldChangeBlock shouldChangeCharactersInRange
Discussion
Callback when a fields should change characters in range
delegate is triggered.
@discussion Block based version of the delegate with the same name.
Declared In
SurveyTextView.h
shouldClear
Callback when a fields should clear
delegate is triggered.
@property (copy, nonatomic) SurveyTextFieldShouldBlock shouldClear
Discussion
Callback when a fields should clear
delegate is triggered.
@discussion Block based version of the delegate with the same name.
Declared In
SurveyTextView.h
shouldEndEditing
Callback when a fields should end editing
delegate is triggered.
@property (copy, nonatomic) SurveyTextFieldShouldBlock shouldEndEditing
Discussion
Callback when a fields should end editing
delegate is triggered.
@discussion Block based version of the delegate with the same name.
Declared In
SurveyTextView.h
shouldReturn
Callback when a fields should return
delegate is triggered.
@property (copy, nonatomic) SurveyTextFieldShouldBlock shouldReturn
Discussion
Callback when a fields should return
delegate is triggered.
@discussion Block based version of the delegate with the same name.
Declared In
SurveyTextView.h
title
Field title
@property (copy, nonatomic) NSString *title
Discussion
Field title
Declared In
SurveyTextView.h
validationBlock
The block used to validate the value of a field, when defined in a subclass.
@property (copy, nonatomic) SurveyValidateFieldBlock validationBlock
Discussion
The block used to validate the value of a field, when defined in a subclass.
@discussion Use for one off validations in property overrides in form subclass.
Declared In
SurveyTextView.h