Module form

Module form 

Source
Expand description

This module allows to quickly create a form based on provided model.

The model needs to implement converting to FormData and from FormExport, then it can be passed directly to Form component.

See story book for examples.

Structs§

ControlsConfig
DataField
A single field in form section.
DataSection
A section of form with label and a field (or field set).
Field
Form
Renders a form for provided FormData that upon “Save” allows to grab updated fields from FormExport.
FormData
Used to define structure of a Form.
FormExport
After form is submitted, it generates an export from every field. This can be used to construct a new model.
FormParams
ImageValue
ModelForm
Renders a form for provided model, that upon “Save” allows to update a model with new values.
TextAreaValue
__FormComponent
__ModelFormComponent

Enums§

DataFieldValue
Value of a field in form section.
FieldExport
FieldsetStyle
Presets for rendering fields in a field set.
Operation

Type Aliases§

ValidateFunc