Description

Enumeration that defines the types of Input Hints.

Since 1.12

Fields

  • none - No active hints
  • auto_complete - Suggest word auto completion
  • sensitive_data - Typed text should not be stored.
  • autofill_credit_card_expiration_date - Autofill hint for a credit card expiration date
  • autofill_credit_card_expiration_day - Autofill hint for a credit card expiration day
  • autofill_credit_card_expiration_month - Autofill hint for a credit card expiration month
  • autofill_credit_card_expiration_year - Autofill hint for a credit card expiration year
  • autofill_credit_card_number - Autofill hint for a credit card number
  • autofill_email_address - Autofill hint for an email address
  • autofill_name - Autofill hint for a user's real name
  • autofill_phone - Autofill hint for a phone number
  • autofill_postal_address - Autofill hint for a postal address
  • autofill_postal_code - Autofill hint for a postal code
  • autofill_id - Autofill hint for a user's ID

Signature

enum @extern Elm.Input.Hints {
    none: 0,
    auto_complete: 1 >> 0,
    sensitive_data: 1 >> 1,
    autofill_credit_card_expiration_date: 256,
    autofill_credit_card_expiration_day: 512,
    autofill_credit_card_expiration_month: 768,
    autofill_credit_card_expiration_year: 1024,
    autofill_credit_card_number: 1280,
    autofill_email_address: 1536,
    autofill_name: 1792,
    autofill_phone: 2048,
    autofill_postal_address: 2304,
    autofill_postal_code: 2560,
    autofill_id: 2816
}

C signature

typedef enum {
    ELM_INPUT_HINT_NONE = 0,
    ELM_INPUT_HINT_AUTO_COMPLETE = 1 /* 1 >> 0 */,
    ELM_INPUT_HINT_SENSITIVE_DATA = 2 /* 1 >> 1 */,
    ELM_INPUT_HINT_AUTOFILL_CREDIT_CARD_EXPIRATION_DATE = 256,
    ELM_INPUT_HINT_AUTOFILL_CREDIT_CARD_EXPIRATION_DAY = 512,
    ELM_INPUT_HINT_AUTOFILL_CREDIT_CARD_EXPIRATION_MONTH = 768,
    ELM_INPUT_HINT_AUTOFILL_CREDIT_CARD_EXPIRATION_YEAR = 1024,
    ELM_INPUT_HINT_AUTOFILL_CREDIT_CARD_NUMBER = 1280,
    ELM_INPUT_HINT_AUTOFILL_EMAIL_ADDRESS = 1536,
    ELM_INPUT_HINT_AUTOFILL_NAME = 1792,
    ELM_INPUT_HINT_AUTOFILL_PHONE = 2048,
    ELM_INPUT_HINT_AUTOFILL_POSTAL_ADDRESS = 2304,
    ELM_INPUT_HINT_AUTOFILL_POSTAL_CODE = 2560,
    ELM_INPUT_HINT_AUTOFILL_ID = 2816
} Elm_Input_Hints;