View Source PolymorphicEmbed.HTML.Component (Polymorphic Embed v5.0.3)
Summary
Functions
Renders nested form inputs for polymorphic embeds.
Functions
Renders nested form inputs for polymorphic embeds.
See Phoenix.Component.inputs_for/1.
Attributes
field(Phoenix.HTML.FormField) (required) - A %Phoenix.HTML.Form{}/field name tuple, for example: {@form[:email]}.id(:string) - The id to be used in the form, defaults to the concatenation of the given field to the parent form id.as(:atom) - The name to be used in the form, defaults to the concatenation of the given field to the parent form name.default(:any) - The value to use if none is available.prepend(:list) - The values to prepend when rendering. This only applies if the field value is a list and no parameters were sent through the form.append(:list) - The values to append when rendering. This only applies if the field value is a list and no parameters were sent through the form.skip_hidden(:boolean) - Skip the automatic rendering of hidden fields to allow for more tight control over the generated markup.Defaults to
false.
Slots
inner_block(required) - The content rendered for each nested form.