|
@@ -5,10 +5,16 @@
|
|
|
**A Dynamic Form Builder for Angular, with built in model mapper.**
|
|
|
|
|
|
- Define forms with metadata, or build directly from models
|
|
|
+
|
|
|
- Combine metadata with models to populate form values
|
|
|
+
|
|
|
- Group related fields in containers, to any level of nesting
|
|
|
+
|
|
|
- Use repeating containers to model complex arrays
|
|
|
-- Terse, with sensible defaults
|
|
|
+
|
|
|
+- Take advantage of terse metadata, and sensible defaults
|
|
|
+
|
|
|
+
|
|
|
|
|
|
## Basic Usage
|
|
|
|
|
@@ -242,8 +248,8 @@ e.g. radio, horizontal.
|
|
|
| ---------- | ------------------------------------------------------------ | ------------------------------------------------------------ |
|
|
|
| `name` | The FormGroup name | **Do not set.**<br />Derived automatically from the key of the metadata object. |
|
|
|
| `label` | Optional container label | *Creates a heading above the container* |
|
|
|
-| `seed` | An object containing key-value pairs, used to seed metadata for all contained fields | *Use when all or most contained fields share certain properties, e.g. to apply the same `class` or `default`* |
|
|
|
-| `template` | Optional template override | *This should be an Angular `TemplateRef`<br />See https://angular.io/api/core/TemplateRef* |
|
|
|
+| `seed` | An object containing key-value pairs, used to seed metadata for all contained fields | *Use when all or most fields share certain properties, e.g. to apply the same `class` or `default`* |
|
|
|
+| `template` | Optional template override | *This should be an Angular TemplateRef<br />See https://angular.io/api/core/TemplateRef* |
|
|
|
|
|
|
### Seeding containers with shared options
|
|
|
|
|
@@ -269,4 +275,8 @@ TO ADD.
|
|
|
|
|
|
TO ADD.
|
|
|
|
|
|
+## Validation
|
|
|
+
|
|
|
+TO ADD.
|
|
|
+
|
|
|
|