Defining Fields
If you need to create complex forms, I suggest to use the
Separated Propertiesmethod, as it is more flexible and can be easly extended to manage complex nested fields.
Fields Props Lifecycle:
Field Definitions > Constructor > Mutate Store > Component.
User Input > Event Handler / Action > Mutate Store > Event Hook.
Available Props (constructor/init.)
| MODE | PROPS |
|---|---|
| Unified | value, label, placeholder, default, initial, disabled, deleted, type, related, rules, options, bindings, extra, hooks, handlers, validatedWith, validators, observers, interceptors, input, output, autoFocus, inputMode, ref. |
| Separated | fields, values, labels, placeholders, defaults, initials, disabled, deleted, types, related, rules, options, bindings, extra, hooks, handlers, validatedWith, validators, observers, interceptors, input, output, autoFocus, inputMode, refs. |
- Defining Flat Fields
- Defining Nested Fields