PhxComponentHelpers.set_form_attributes
You're seeing just the function
set_form_attributes
, go back to PhxComponentHelpers module for more information.
Extends assigns with form related attributes.
If assigns contain :form
and :field
keys then it will set :id
, :name
, :for
,
:value
, and :errors
from received Phoenix.HTML.Form
.
Parameters
assigns
- your component assigns
Example
assigns
|> set_form_attributes()