FUINoteFormCellContentView
open class FUINoteFormCellContentView : FUIFormCellContentView<FUITextView, FUIControlState, FUIText>, FUITitleComponent, FUIValueComponent, FUIPlaceholderComponent, FUISubtitleComponent, UITextViewDelegate
The content view of a FUINoteFormCell
.
-
If
isTrackingLiveChanges
is true, thenonChangeHandler
will be invoked for every letter entered.Otherwise,
onChangeHandler
will be invoked only after user taps “Done” key, or the field resigns first responder.The default is
false
.Declaration
Swift
public var isTrackingLiveChanges: Bool
-
The minimum number of lines for the
valueView
.The cell height will be set to display the text with this number of lines.
The default and the hard minumum value is
2
forVersion.v2
and1
forVersion.v1
. Setting this value to less than the hard minimum will set this value to the hard minimum. This property is ignored when the height of the cell is fixed.Declaration
Swift
public var minNumberOfLines: Int { get set }
-
The maximum number of lines in the
valueView
.The cell height could grow to display the text with this number of lines. This property is ignored when the height of the cell is fixed. The default is 0. Any value less or equals to zero means no limit.
Declaration
Swift
public var maxNumberOfLines: Int
-
This is the maximum length of the text in the
valueView
ifmaxValueTextLength
is greater than 0.If the text length reaches this limit when
isCharCountEnabled
isfalse
, 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
isCharCountEnabled
istrue
, the user cannot enter more text ifallowsBeyondLimit
isfalse
. In the case whereallowsBeyondLimit
istrue
, the user can enter more text beyond the limitation in the error state.The default value for
maxValueTextLength
is 0, which means no limit.Declaration
Swift
public var maxValueTextLength: Int { get set }
-
If
isCharCountEnabled
is true, it will show the character count and themaxValueTextLength
. The character count number will be updated during editing.The default is
false
.Declaration
Swift
public var isCharCountEnabled: Bool { get set }
-
If
showsErrorInValidationMsg
istrue
, it will show the character count error message in thevalidationMessage
of theFUINoteFormCell
. Otherwise, the error message will be shown in theerrorView
in the same layout as thehintView
.The default is
true
.Declaration
Swift
public var showsErrorInValidationMsg: Bool { get set }
-
If
allowsBeyondLimit
istrue
, it will allow the user to input continuously even aftermaxValueTextLength
is reached. It will be in an error state with an error message and a semantic negative color. IfallowsBeyondLimit
isfalse
, it will auto-stop user input whenmaxValueTextLength
is reached.The default is
false
.Declaration
Swift
public var allowsBeyondLimit: Bool { get set }
-
The error text of the cell.
Declaration
Swift
public var errorMessage: FUIText { get set }
-
If
hasError
istrue
, it will be in an error state with an error message and a semantic negative color.The default is
false
.Declaration
Swift
public var hasError: Bool { get set }
-
The subtitle text of the cell.
Declaration
Swift
public let subtitle: FUIText
-
Indiccates if to hide the read-only hint or not.
A default hint is provided when this cell’s
isReadOnly
is true unless this property istrue
. The default is false, means the default read-only hint will be shown whenisReadOnly
istrue
.Declaration
Swift
open var hidesReadOnlyHint: Bool { get set }
-
Indicates if the cell is read-only or not.
The default is
false
.Declaration
Swift
open var isReadOnly: Bool { get set }
-
The error message when the character count limitation is reached.
Declaration
Swift
public var charCountReachLimitMsg: String { get set }
-
The error message when the character count exceeds the limitation.
Declaration
Swift
public var charCountBeyondLimitMsg: String { get set }