ControlType
public enum ControlType
Undocumented
-
(value: Bool, keyName: String)
Declaration
Swift
case `switch`(_: Bool = false, _: String? = nil)
Parameters
value
The value of the property. The default is
false
.keyName
The key name of the property.
-
(value: Int, keyName: String?)
Declaration
Swift
case rating(Int, _: String? = nil)
Parameters
value
The value of the property.
keyName
The key name of the property.
-
(value: [Int], valueOptions: [String], keyName: String?)
Declaration
Swift
case segmentedControl([Int], [String], _: String? = nil)
Parameters
value
The value of the cell, indicating the index of the selected item.
-1
indicates empty selection.valueOptions
The 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.
keyName
The key name of the property.
-
(value: Float, minimumValue: Float, maximumValue: Float, keyName: String?)
Declaration
Swift
case slider(Float, Float, Float, _: String? = nil)
Parameters
value
The value of the property.
minimumValue
The minimum value of the selection range.
maximumValue
The maximum value of the selection range.
keyName
The key name of the property.
-
(value: String, placeholderText: String?)
Declaration
Swift
case title(String, _: String? = nil)
Parameters
value
The text of the Title.
placeholderText
The placeholder text for the text field.
-
(value: String, placeholderText: String?)
Declaration
Swift
case note(String, _: String? = nil)
Parameters
value
The text of the title.
placeholderText
The placeholder text for the text field.
-
(value: String, placeholderText: String?, keyName: String?)
Declaration
Swift
case keyValue(String, _: String? = nil, _: String? = nil)
Parameters
value
The text of the title.
placeholderText
The placeholder text for the text field.
keyName
The key name of the property.
-
(value: String, placeholderText: String?, keyName: String?)
Declaration
Swift
case textField(String, _: String? = nil, _: String? = nil)
Parameters
value
The text of the title.
placeholderText
The placeholder text for the text field.
keyName
The 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
value
An array of the selected indexes in the control. Uses the same index as the
valueOptions
array.valueOptions
A string array of titles for the buttons in the control.
keyName
The key name of the property.
allowsMultipleSelection
Indicates whether multiple buttons may be selected simultaneously (
true
). Iffalse
, the control behaves in “radio” mode. The default istrue
.allowsEmptySelection
Indicates 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
value
The default selections.
valueOptions
The list of optional values that the user may choose from.
keyName
The key name of the property.
allowsMultipleSelection
Indicates whether the user can select multiple values. The default is
true
, meaning that the user may select multiple values.allowsEmptySelection
Indicates whether an empty selection is allowed. The default is
true
.isPickerDismissedOnSelection
Specifies whether the picker is to be dismissed after selection. If this property is
true
andallowsMultipleSelection
isfalse
, the picker will be dismissed after the user makes a selection. The default isfalse
.presentsListPickerModally
This 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
value
The default value is 0.0. The limit is 23:59 (86,399 seconds).
keyName
The key name of the property.
-
(value: Date, keyName: String?, datePickerMode: UIDatePicker.Mode, dateFormatter: DateFormatter)
Declaration
Swift
case datePicker(Date, _: String? = nil, _: UIDatePicker.Mode? = nil, _: DateFormatter? = nil)
Parameters
value
The default value is 0.0. The limit is 23:59 (86,399 seconds).
keyName
The key name of the property.
datePickerMode
The
UIDatePickerMode
for theUIDatePicker
for this cell. The default value isUIDatePickerMode.dateAndTime
.Important
important :UIDatePickerMode.countDownTimer
is not allowed here.dateFormatter
The
DateFormatter
used to display the selectedDate
. Default formatter: - forUIDatePickerMode.dateAndTime
it is the medium date style followed by the short time style. - forUIDatePickerMode.date
it is the medium date style - forUIDatePickerMode.time
it is the short time style -
(value: [FUISortCriterion], keyName: String?, isAtLeastOneSelected: Bool)
Declaration
Swift
case orderPicker([FUISortCriterion], _: String? = nil, _: Bool = true)
Parameters
value
The array of sort criteria.
keyName
The key name of the property.
isAtLeastOneSelected
Determines whether at least one sort criterion should be selected. The default is
true
.