Formex v0.6.7 Formex.FormCollection
Form collections
To get started see Formex.Type, section Collections of forms.
Functionality that are not mentioned in the link above:
Options
type- module that implementsFormex.Type. Requiredstruct_module- module of struct, e.g.App.UserAddressdelete_field- defaults to:formex_delete. Defines input that will be set to true if we click ×. Behaviours depends on value::formex_delete- ifformex_deleteis true, this collection item will be removed.another field - it’s a simple input that may be stored in repo
For example, we can in our model create
removedfield. Then setdelete_field: :removedoption.