ks-dynamic-forms
v0.0.2
Published
Generates form compoents dynamically based on JSON input -- a great showcase of Angular Reactive Modules
Downloads
74
Maintainers
Readme
ks-dynamic-forms
An Angular package that can generate form components dynamically from a JSON input.
Usage
First, install the package using npm:
npm install ks-dynamic-forms --save
Second, copy assets files from node_modules to src/assets folder
copy ./node_modules/ks-dynamic-forms/assetes/* ./src/assetes
Publicly available directives:
<ks-publisher-dynamic
[configList]="nsCustomConfigList">
</ks-publisher-dynamic>
Generates Form components from JSON input,
<ks-btn-custom-field></ks-btn-custom-field>
Adds a button to add new Form component
<ks-dynamic-form
#customParamForm="ksDynamicForm"
[showActionButtons]="false"
[configList]="nsCustomConfigList">
</ks-dynamic-form>
Presents a UI to create/edit/delete Form components. And also displays the corresponding JSON.
Detail example is available at the Github Repo:
https://bitbucket.it.keysight.com/scm/nsvc/dynamic-form.git