Surface.Components.Form.Inputs (surface v0.7.0) View Source
A wrapper for Phoenix.HTML.Form.html.inputs_for/3
.
Additionally, adds the generated form instance that is returned by inputs_for/3
into the context, making it available to any child input.
Properties
- form :form - The parent form.
It should either be a Phoenix.HTML.Form
emitted by form_for
or an atom.
for :atom - The name of the field related to the child inputs.
opts :keyword, default: [] - Extra options for
inputs_for/3
.
See Phoenix.HTML.Form.html.inputs_for/4
for the available options.
Slots
- default, args: [:form, :index] - The code containing the input controls
Link to this section Summary
Functions
Callback implementation for Surface.Component.render/1
.
Link to this section Functions
Callback implementation for Surface.Component.render/1
.