ControlType

public enum ControlType

Undocumented

  • FUISwitchFormCell

    (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.

  • FUIRatingControlFormCell

    (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.

  • FUISegmentedControlFormCell

    (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.

  • FUISliderFormCell

    (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.

  • FUITitleFormCell

    (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.

  • FUINoteFormCell

    (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.

  • FUIKeyValueFormCell

    (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.

  • FUITextFieldFormCell

    (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.

  • FUIFilterFormCell

    (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). If false, the control behaves in “radio” mode. The default is true.

    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 is true.

  • FUIListPickerFormCell

    (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 and allowsMultipleSelection is false, the picker will be dismissed after the user makes a selection. The default is false.

    presentsListPickerModally

    This property indicates whether to present the list picker modally or not. The default is false.

  • FUIDurationPickerFormCell

    (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.

  • FUIDatePickerFormCell

    (value: Date?, keyName: String?, datePickerMode: UIDatePicker.Mode, dateFormatter: DateFormatter)

    Declaration

    Swift

    case datePicker(_: Date? = nil, _: String? = nil, _: UIDatePicker.Mode? = nil, _: DateFormatter? = nil)

    Parameters

    value

    The default value is nil.

    keyName

    The key name of the property.

    datePickerMode

    The UIDatePickerMode for the UIDatePicker for this cell. The default value is UIDatePickerMode.dateAndTime.

    Important

    important : UIDatePickerMode.countDownTimer is not allowed here.

    dateFormatter

    The DateFormatter used to display the selected Date. Default formatter: - for UIDatePickerMode.dateAndTime it is the medium date style followed by the short time style. - for UIDatePickerMode.date it is the medium date style - for UIDatePickerMode.time it is the short time style

  • FUIOrderPickerFormCell

    (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.