Angular Dynamic Form Generator
Richard Knight 1ef197f493 Improved? | 6 yıl önce | |
---|---|---|
_notes | 6 yıl önce | |
e2e | 6 yıl önce | |
src | 6 yıl önce | |
.editorconfig | 6 yıl önce | |
.gitignore | 6 yıl önce | |
README.md | 6 yıl önce | |
angular.json | 6 yıl önce | |
karma.conf.js | 6 yıl önce | |
ng-dynaform.code-workspace | 6 yıl önce | |
package-lock.json | 6 yıl önce | |
package.json | 6 yıl önce | |
protractor.conf.js | 6 yıl önce | |
tsconfig.json | 6 yıl önce | |
tslint.json | 6 yıl önce | |
yarn.lock | 6 yıl önce |
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 |