FormField

open class FormField

Defines a form field.

  • Initializes form field with type, identifier, title and placeholder.

    Declaration

    Swift

    public init(type: FormFieldType, id: String, title: String, placeholder: String? = nil, required: Bool? = false, value: String? = nil)

    Parameters

    type

    the type of the field

    id

    the field identifier in the server

    title

    the field title

    placeholder

    the placeholder text to put into the field

  • Create a FormField from an attributes Object.

    Declaration

    Swift

    public init?(attributes: AnyObject)