TextRowType
public protocol TextRowType : LabelRowType
The type of the row.
-
The placeholder of the text field.
Declaration
Swift
var placeholder: String? { get } -
Whether or not the input value is valid according to roles.
Declaration
Swift
var isValid: Bool { get set } -
Whether or not the text field is enabled
Declaration
Swift
var isEnabled: Bool { get set } -
The return type of the keyboard.
Declaration
Swift
var returnType: UIReturnKeyType { get } -
Whether or not the text should be masked.
Declaration
Swift
var isSecret: Bool { get } -
The keyboard type of the text field.
Declaration
Swift
var keyboardType: UIKeyboardType { get } -
The action to be performed when the return key is clicked.
Declaration
Swift
var didReturnAction: (() -> Void)? { get set } -
The action to be performed when the field starts editing.
Declaration
Swift
var didStartEditingAction: (() -> Void)? { get set } -
The action to be performed when the field ends editing.
Declaration
Swift
var didEndEditingAction: (() -> Void)? { get set } -
The value of the text field.
Declaration
Swift
var value: String? { get set } -
The callback for validation changing.
Declaration
Swift
var didChangeValidationAction: ((Bool) -> Void)? { get set } -
The callback for value changing.
Declaration
Swift
var didChangeValueAction: ((String?) -> Void)? { get set } -
Validate all rules.
Declaration
Swift
@discardableResult func isValid(value: String?, shouldUpdateView: Bool) -> String?Return Value
The first error message. Nil if the value is valid.
-
Format a string into a new one
Declaration
Swift
func format(value: String) -> StringParameters
valueThe current string
Return Value
The formatted string
TextRowType Protocol Reference