ControlType
public enum ControlType
Undocumented
-
(value: Bool, keyName: String)
Declaration
Swift
case `switch`(_: Bool = false, _: String? = nil)Parameters
valueThe value of the property. The default is
false.keyNameThe key name of the property.
-
(value: Int, keyName: String?)
Declaration
Swift
case rating(Int, _: String? = nil)Parameters
valueThe value of the property.
keyNameThe key name of the property.
-
(value: [Int], valueOptions: [String], keyName: String?)
Declaration
Swift
case segmentedControl([Int], [String], _: String? = nil)Parameters
valueThe value of the cell, indicating the index of the selected item.
-1indicates empty selection.valueOptionsThe array of the valid options. The maximum number of items in the array is limited to 5. If there are more than 5 items, only the first 5 items will be used.
keyNameThe key name of the property.
-
(value: Float, minimumValue: Float, maximumValue: Float, keyName: String?)
Declaration
Swift
case slider(Float, Float, Float, _: String? = nil)Parameters
valueThe value of the property.
minimumValueThe minimum value of the selection range.
maximumValueThe maximum value of the selection range.
keyNameThe key name of the property.
-
(value: String, placeholderText: String?)
Declaration
Swift
case title(String, _: String? = nil)Parameters
valueThe text of the Title.
placeholderTextThe placeholder text for the text field.
-
(value: String, placeholderText: String?)
Declaration
Swift
case note(String, _: String? = nil)Parameters
valueThe text of the title.
placeholderTextThe placeholder text for the text field.
-
(value: String, placeholderText: String?, keyName: String?)
Declaration
Swift
case keyValue(String, _: String? = nil, _: String? = nil)Parameters
valueThe text of the title.
placeholderTextThe placeholder text for the text field.
keyNameThe key name of the property.
-
(value: String, placeholderText: String?, keyName: String?)
Declaration
Swift
case textField(String, _: String? = nil, _: String? = nil)Parameters
valueThe text of the title.
placeholderTextThe placeholder text for the text field.
keyNameThe key name of the property.
-
(value: [Int], valueOptions: [String], keyName: String?, allowsMultipleSelection: Bool, allowsEmptySelection: Bool)
Declaration
Swift
case filter([Int], [String], _: String? = nil, _: Bool = true, _: Bool = true)Parameters
valueAn array of the selected indexes in the control. Uses the same index as the
valueOptionsarray.valueOptionsA string array of titles for the buttons in the control.
keyNameThe key name of the property.
allowsMultipleSelectionIndicates whether multiple buttons may be selected simultaneously (
true). Iffalse, the control behaves in “radio” mode. The default istrue.allowsEmptySelectionIndicates whether the control allows zero items to be selected. If
false, then once a value has been selected by the developer or user, taps by the user on the last selected item will be ignored (instead of de-selecting the item). The default istrue. -
(value: [Int], valueOptions: [String], keyName: String?, allowsMultipleSelection: Bool, allowsEmptySelection: Bool, isPickerDismissedOnSelection: Bool, presentsListPickerModally: Bool)
Declaration
Swift
case listPicker([Int], [String], _: String? = nil, _: Bool = true, _: Bool = true, _: Bool = false, _: Bool = false)Parameters
valueThe default selections.
valueOptionsThe list of optional values that the user may choose from.
keyNameThe key name of the property.
allowsMultipleSelectionIndicates whether the user can select multiple values. The default is
true, meaning that the user may select multiple values.allowsEmptySelectionIndicates whether an empty selection is allowed. The default is
true.isPickerDismissedOnSelectionSpecifies whether the picker is to be dismissed after selection. If this property is
trueandallowsMultipleSelectionisfalse, the picker will be dismissed after the user makes a selection. The default isfalse.presentsListPickerModallyThis property indicates whether to present the list picker modally or not. The default is
false. -
(value: TimeInterval, keyName: String?, minuteInterval: Int)
Declaration
Swift
case durationPicker(_: TimeInterval = 0, _: String? = nil, _: Int = 5)Parameters
valueThe default value is 0.0. The limit is 23:59 (86,399 seconds).
keyNameThe key name of the property.
-
(value: Date?, keyName: String?, datePickerMode: UIDatePicker.Mode, dateFormatter: DateFormatter)
Declaration
Swift
case datePicker(_: Date? = nil, _: String? = nil, _: UIDatePicker.Mode? = nil, _: DateFormatter? = nil)Parameters
valueThe default value is
nil.keyNameThe key name of the property.
datePickerModeThe
UIDatePickerModefor theUIDatePickerfor this cell. The default value isUIDatePickerMode.dateAndTime.Important
important :UIDatePickerMode.countDownTimeris not allowed here.dateFormatterThe
DateFormatterused to display the selectedDate. Default formatter: - forUIDatePickerMode.dateAndTimeit is the medium date style followed by the short time style. - forUIDatePickerMode.dateit is the medium date style - forUIDatePickerMode.timeit is the short time style -
(value: [FUISortCriterion], keyName: String?, isAtLeastOneSelected: Bool)
Declaration
Swift
case orderPicker([FUISortCriterion], _: String? = nil, _: Bool = true)Parameters
valueThe array of sort criteria.
keyNameThe key name of the property.
isAtLeastOneSelectedDetermines whether at least one sort criterion should be selected. The default is
true.