Type

public enum `Type`: String

The different types of ‘input’.

  • A plain text field for inputting text

    Declaration

    Swift

    case text = "text"
  • A text input field that will not show the characters as they are typed

    Declaration

    Swift

    case password = "password"
  • A button that will send the form it is in including the status of all input elements

    Declaration

    Swift

    case submit = "submit"
  • The name/value of this element will be included if at submit the element is selected

    Declaration

    Swift

    case checkbox = "checkbox"
  • A name/value combination that will not be visible, but will be included in the form data

    Declaration

    Swift

    case hidden = "hidden"
  • A reset button that -when activated- will revert the input elements in the form to their original status

    Declaration

    Swift

    case reset = "reset"
  • A button that will send the form it is in including the status of all input elements

    Declaration

    Swift

    case button = "button"
  • The name/value of this element will be included if at submit the element is selected

    Declaration

    Swift

    case radio = "radio"