PhxComponentHelpers.set_phx_attributes
You're seeing just the function
set_phx_attributes
, go back to PhxComponentHelpers module for more information.
Just a convenient method built on top of set_prefixed_attributes/3
for phx* attributes.
It will automatically detect any attribute prefixed by `phxfrom input assigns. By default, the
:intooption of
set_prefixed_attributes/3is
:phx_attributes`
Example
assigns
|> set_phx_attributes(required: [:phx_submit], init: [:phx_change])
assigns
now contains @raw_phx_change
, @raw_phx_submit
and @raw_phx_attributes
.