dwyl/autoform

Input types

Open

#4 aperta il 28 set 2018

Vedi su GitHub
 (1 commento) (1 reazione) (0 assegnatari)Elixir (2 fork)auto 404
help wantedquestion

Metriche repository

Star
 (21 star)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

We currently have a number of input types working:

Based on Ecto Types:

  • :string - text input
  • :integer, :float, :decimal - number input
  • :boolean - checkbox
  • :date - generates three select inputs - year, month, day
  • :time - generates two select inputs - hour, minute
  • :utc_datetime, naive_datetime - combines :date and :time inputs

Based on field name:

  • :email - email input
  • :password - password input
  • :url - url input
  • :search - search input

Any other name/types will generate a text input.

Are there any other basic types we want to cover? Are any of these incorrect/do any have a better input type?

Guida contributor