FUITextFieldContentView
@MainActor
open class FUITextFieldContentView : FUIFormCellContentView<FUITextField, FUIControlState, FUIText>, FUITitleComponent, FUIMandatoryFieldComponent, FUIValueComponent, FUIPlaceholderComponent, FUISubtitleComponent, FUIPropertyFormCell, UITextFieldDelegate
The content view of an FUITextFieldFormCell.
-
Declaration
Swift
@MainActor public var validationMessage: String? -
Declaration
Swift
@MainActor public var validationView: FUIInlineValidationView! -
The key name of the property.
Declaration
Swift
@MainActor open var keyName: String? { get set } -
The value type is String.
Declaration
Swift
public typealias ValueType = String -
The value of the property.
Declaration
Swift
@MainActor open var value: String { get set } -
The
FUITextFieldholds the value string.Declaration
Swift
@MainActor public var valueTextField: FUITextField { get } -
The placeholder for the value text field.
Declaration
Swift
@MainActor public let placeholder: FUIText -
Indicates if the value of the cell can be changed or not. For
FUISimplePropertyFormCellthis property is alwaysfalse.Declaration
Swift
@MainActor open var isEditable: Bool { get set } -
Implementation of change handler. It is invoked on changes to the
valueproperty.Declaration
Swift
@MainActor open var onChangeHandler: ((String) -> Void)? -
If
isTrackingLiveChanges == true, thenonChangeHandlerwill be invoked for every letter entered. Otherwise,onChangeHandlerwill be invoked only after the user taps the “Done” key, or the field resigns first responder.The default value is
false.Declaration
Swift
@MainActor open var isTrackingLiveChanges: Bool -
The placeholder text for the value text field.
Declaration
Swift
@available(*, deprecated, message: "This property is deprecated. Please use `placeholder.text`.") @IBInspectable @MainActor public var placeholderText: String? { get set } -
This is the maximum length of the text in the
valueViewifmaxValueTextLengthis greater than 0.If the text length reaches this limit when
isCharCountEnabledisfalse, the user cannot enter more text. Note: If the user pastes a string and the length plus the current text length is greater than the limit, the insert is rejected. Partial strings are not accepted in the text field.If the text length reaches this limit when
isCharCountEnabledistrue, the user cannot enter more text ifallowsBeyondLimitisfalse. In the case whereallowsBeyondLimitistrue, the user can enter more text beyond the limitation in the error state.The default value for
maxValueTextLengthis 0, which means no limit.Declaration
Swift
@MainActor public var maxValueTextLength: Int { get set } -
If
isCharCountEnabledis true, it will show the character count and themaxValueTextLength. The character count number will be updated during editing.The default value is
false.Declaration
Swift
@MainActor public var isCharCountEnabled: Bool { get set } -
If
showsErrorInValidationMsgistrue, it will show the character count error message in thevalidationMessageof theFUITextFieldFormCell. Otherwise, the error message will be shown in theerrorViewin the same layout as thehintView.The default is
true.Declaration
Swift
@MainActor public var showsErrorInValidationMsg: Bool { get set } -
If
allowsBeyondLimitistrue, it will allow the user to input continuously even aftermaxValueTextLengthis reached. It will be in an error state with an error message and a semantic negative color. IfallowsBeyondLimitisfalse, it will auto-stop user input whenmaxValueTextLengthis reached.The default value is
false.Declaration
Swift
@MainActor public var allowsBeyondLimit: Bool { get set } -
The error text of the cell.
Declaration
Swift
@MainActor public var errorMessage: FUIText { get set } -
If
hasErroristrue, it will be in an error state with an error message and a semantic negative color.The default value is
false.Declaration
Swift
@MainActor public var hasError: Bool { get set } -
The error message when the character count limitation is reached.
Declaration
Swift
@MainActor public var charCountReachLimitMsg: String { get set } -
The error message when the character count exceeds the limitation.
Declaration
Swift
@MainActor public var charCountBeyondLimitMsg: String { get set } -
The formatter for the
UITextFieldin this cell.Currently, SAPFiori provides two implementations:
FUIPhoneNumberFormatterto format phone numbers.FUINumberFormatterto format numbers that use the regular iOSNumberFormatter.
Declaration
Swift
@MainActor open var formatter: FUIFormattedStringEditing? { get set } -
A
Boolto enable alternative entry. The cell must also haveisEditableset totrueto display the button. The button will hide while text entry is in progress. The default value isfalse.Declaration
Swift
@MainActor open var isAlternativeInputEnabled: Bool { get set } -
The customized text alignment for the
valueTextField,If this property is
nil, the default alignment is used.- For left to right languages and the cell is
editable, the default is left aligned. - For left to right languages and the cell is not
editable, the default is right aligned. - For righ to left languages and the cell is
editable, the default is rignt aligned. - For righ to left languages and the cell is not
editable, the default is left aligned.
Declaration
Swift
@MainActor open var valueTextAlignment: NSTextAlignment? - For left to right languages and the cell is
-
The subtitle text of the cell.
Declaration
Swift
@MainActor public let subtitle: FUIText -
Indicates if the cell is read-only or not.
The default value is
false.Declaration
Swift
@MainActor open var isReadOnly: Bool { get set } -
Indicates whether the cell is a mandatory field.
The default value is
false.Declaration
Swift
@MainActor open var isRequired: Bool { get set } -
Indicates that the cell is a mandatory field.
The default value is
*.Declaration
Swift
@MainActor public var mandatoryIndicator: FUIText { get set } -
Indiccates if to hide the read-only hint or not.
A default hint is provided when this cell’s
isReadOnlyis true unless this property istrue. The default is false, means the default read-only hint will be shown whenisReadOnlyistrue.Declaration
Swift
@MainActor open var hidesReadOnlyHint: Bool { get set }
-
Method determining the type of presented keyboard
Declaration
Swift
@MainActor open var keyboardType: UIKeyboardType { get set }