Phoenix.HTML.FormData protocol
Converts a data structure into a Phoenix.HTML.Form
struct.
Summary↑
to_form(data, options) | Converts a data structure into a |
to_form(data, form, field, options) | Converts the field in the given form based on the data structure
into a |
Types ↑
t :: term
Functions
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 Phoenix.HTML.Form
struct.
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.