Converts a data structure into a Phoenix.HTML.Form
struct.
Receives the given field and returns its input type (:text_input, :select, etc). Returns nil
if the type is unknown.
Returns the HTML5 validations that would apply to the given field.
Returns the value for the given field.
Converts a data structure into a Phoenix.HTML.Form
struct.
Converts the field in the given form based on the data structure into a list of Phoenix.HTML.Form
structs.
Receives the given field and returns its input type (:text_input, :select, etc). Returns nil
if the type is unknown.
Returns the HTML5 validations that would apply to the given field.
Returns the value for the given field.
Converts a data structure into a Phoenix.HTML.Form
struct.
The options are the same options given to form_for/4
. It can be used by implementations to configure their behaviour and it must be stored in the underlying struct, with any custom field removed.
Converts the field in the given form based on the data structure into a list of Phoenix.HTML.Form
structs.
The options are the same options given to inputs_for/4
. It can be used by implementations to configure their behaviour and it must be stored in the underlying struct, with any custom field removed.
© 2014 Chris McCord
Licensed under the MIT License.
https://hexdocs.pm/phoenix_html/Phoenix.HTML.FormData.html