Surface.Components.Form.Inputs (surface v0.1.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. .

Link to this section Summary

Functions

Callback implementation for Phoenix.LiveComponent.mount/1.

Callback implementation for Phoenix.LiveComponent.render/1.

Link to this section Functions