Angular Dynamic Form Generator
Richard Knight 51a48883ee Adding types and examples | пре 6 година | |
---|---|---|
_notes | пре 6 година | |
e2e | пре 6 година | |
src | пре 6 година | |
.editorconfig | пре 6 година | |
.gitignore | пре 6 година | |
README.md | пре 6 година | |
angular.json | пре 6 година | |
karma.conf.js | пре 6 година | |
ng-dynaform.code-workspace | пре 6 година | |
package-lock.json | пре 6 година | |
package.json | пре 6 година | |
protractor.conf.js | пре 6 година | |
tsconfig.json | пре 6 година | |
tslint.json | пре 6 година | |
yarn.lock | пре 6 година |
A Dynamic Form Builder for Angular.
All fields support the following metadata. The missing properties will be 'filled oin' by dynaform's field-specific models, allowing forms to specifiued tersely.
Property | Description | Default / Notes |
---|---|---|
name | The FormControl name - DERIVED AUTOMATICALLY | Derived from the key of the control's metadata object |
type | The control's type | Text |
label | The controls's label | UnCamelCased and spaced version of name |
value | The control's initial value | Empty string |
checkedValue | Value when checked* | Checkboxes / Checkbuttons only |
default | Default value | |
placeholder | Optional placeholder text | |
class | CSS classes to apply | Single class (string) or array of classes (string[]) |
id | CSS id to apply | |
disabled | Whether field is disbled | |
change | Name of function in host component to call when value changes | |
source | Location of data in model | Same name and path. Used by model-mapper. |
before | Ordering instruction - move before | |
after | Ordering instruction - move after | |
validators | Array of validator functions - following Angular FormControl API | |
asyncValidators | Array of async validator functions - following Angular FormControl API | |
valFailureMessages | Validation failure messages - display appropriate message if validation fails |