Phoenix.HTML.FormData

Phoenix.HTML.FormData protocol

Converts a data structure into a Phoenix.HTML.Form struct.

Summary

Types

t()

Functions

input_type(data, form, field)

Receives the given field and returns its input type (:text_input, :select, etc). Returns nil if the type is unknown

input_validations(data, form, field)

Returns the HTML5 validations that would apply to the given field

登录查看完整内容