dwyl/autoform

Input types

Open

#4 创建于 2018年9月28日

在 GitHub 查看
 (1 评论) (1 反应) (0 负责人)Elixir (2 fork)auto 404
help wantedquestion

仓库指标

Star
 (21 star)
PR 合并指标
 (PR 指标待抓取)

描述

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?

贡献者指南