Class
FormConfiguration.DateInputConfiguration
public class DateInputConfiguration
Relationships
Member Of
FormConfiguration
A type to configure a FormViewController.
Initializers
init(title:subtitle:placeholder:selectedDate:dateFormat:datePickerConfiguration:helper:key:isOptionalField:)
public init(title: String?, subtitle: String?, placeholder: String,
selectedDate: Date?, dateFormat: String = "MM/dd/yyyy", datePickerConfiguration: DatePickerConfiguration,
helper: String?, key: FormItem.Key,
isOptionalField: Bool = false)
Creates a new DateInputConfiguration
Parameters
Name | Type | Description |
---|---|---|
title | String? |
The title to apply to the field |
subtitle | String? |
The subtitle to apply to the field |
placeholder | String |
The placeholder to apply to the field |
selectedDate | Date? |
The currently selected date for this field if there is one, otherwise nil |
dateFormat | String |
The date format to use in the field when a date is selected; defaults to |
datePickerConfiguration | DatePickerConfiguration |
The DatePickerConfiguration object used to configure the date picker |
helper | String? |
The helper text to apply to the field |
key | FormItem.Key |
A unique key for this field |
isOptionalField | Bool |
true if the field is optional; defaults to false |