A field group is a way to group fields together, making advanced layout very simple. It can also be used to group fields that are associated with the same model (useful if it's different than the model for the rest of the fields).
A field group is specified as part of the
fields array passed to a formly-form. It can have several of the same properties available to a regular Field Configuration Object (see below). It is distinguished by the presence of a
fieldGroup array of Field Configuration Objects.
Below is the list of properties available in a
fieldGroup field. They are the same as the property in the Field Configuration Object unless otherwise noted.
- key (based on the field's model)
- options (same as in formly-form)
- form (attached to the object by angular-formly)
One other important note is that because the
fieldGroupis essentially another formly-form, it also inherit's (most of) the parent form's attributes (like
Updated less than a minute ago