FUIDatePickerContentView
@MainActor
open class FUIDatePickerContentView : FUITintableDrawingView<FUIControlState>, FUITitleMultiLineComponent, FUIMandatoryFieldComponent, FUIValueComponent, FUIDatePickerComponent
The basic inner view for FUIDatePickerCollectionViewCell.
-
Title text for Date Picker content view.
Declaration
Swift
@MainActor public private(set) var title: FUIMultiLineText { get set } -
The value of the property. The default is the current date.
This value is displayed next to, or below, the
titleby differentdateFormatters ordatePickerModes.Declaration
Swift
@MainActor public var value: Date? { get set } -
Implementation of the change handler. This is invoked on changes to the
valueproperty.Declaration
Swift
@MainActor public var onChangeHandler: ((Date?) -> Void)? -
The text to be displayed when no date is selected.
The default value is the localized string “No date selected”.
Declaration
Swift
@MainActor public var noDateSelectedString: String? -
If
isTrackingLiveChangesis true, thenonChangeHandlerwill be invoked whenever a date is selected.Otherwise,
onChangeHandlerwill be invoked only when the Date Picker is closed.The default value is
true.Declaration
Swift
@MainActor open var isTrackingLiveChanges: Bool -
Indicates if the value of the cell could be changed or not. The default is true.
Declaration
Swift
@MainActor open var isEditable: Bool { get set } -
Indicate whether the slider is enabled.
isEnabledandisEditableare in sync.Declaration
Swift
@MainActor override open var isEnabled: 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 } -
The
DateFormatterto be used to display the selectedDate. Default formatter:- for
UIDatePicker.Mode.dateAndTimeit is medium date style followed by short time style. - for
UIDatePicker.Mode.dateit is medium date style - for
UIDatePicker.Mode.timeit is short time style
Declaration
Swift
@MainActor open var dateFormatter: DateFormatter? { get set } - for
-
The
UIDatePicker.Modefor theUIDatePickerfor this view. The default value is.dateAndTime.Declaration
Swift
@MainActor open var datePickerMode: UIDatePicker.Mode { get set } -
The
UIDatePickerfor this view. It will be displayed only when this view state is selected.Declaration
Swift
@objc @MainActor public private(set) lazy var datePicker: UIDatePicker { get set }
-
Undocumented
Declaration
Swift
@MainActor open override var accessibilityLabel: String? { get set }