FieldNumberLayout
@objcMembers open class FieldNumberLayout: FieldLayout
Class for a FieldNumber
-based Layout
.
-
The current text value that should be used to render the
FieldNumber
. This value is automatically set toself.fieldNumber.textValue
on initialization and wheneversetValueFromLocalizedText(:)
is called. However, it can be set to any value outside of these calls (e.g. for temporary input purposes).Declaration
Swift
open var currentTextValue: String
-
The minimum value of this number field. If
nil
, it is unconstrained by a minimum value.Declaration
Swift
public var minimumValue: Double?
-
The maximum value of this number field. If
nil
, it is unconstrained by a maximum value.Declaration
Swift
public var maximumValue: Double?
-
Flag indicating if the number field is constrained to being an integer value.
Declaration
Swift
public var isInteger: Bool
-
Initializes the label number layout.
Declaration
Swift
public init(fieldNumber: FieldNumber, engine: LayoutEngine, measurer: FieldLayoutMeasurer.Type)
-
Convenience method that calls
self.fieldNumber.setValueFromLocalizedText(text)
and automatically setsself.currentTextValue
toself.fieldNumber.textValue
.Declaration
Swift
open func setValueFromLocalizedText(_ text: String)