formex v0.5.3 Formex.FormNested

form
|> add(:user_info, :nested, type: App.UserInfoType, struct_module: App.UserInfo)

Options

  • type - module that implements Formex.Type. Required
  • struct_module - module of struct, e.g. App.UserInfo

Summary

Types

t()
t() :: %Formex.FormNested{form: term, name: term, opts: term, struct_module: term, type: term, validation: term}

Functions

finish_creating(form, form_nested)
finish_creating(form :: Formex.Form.t, form_nested :: Formex.FormNested.t) :: Formex.Form.t
start_creating(form, type, name, opts)
start_creating(form :: Formex.Form.t, type :: any, name :: Atom.t, opts :: Map.t) :: Formex.Form.t