0.0.2 • Published 5 years ago

ks-dynamic-forms v0.0.2

Weekly downloads
1
License
ISC
Repository
bitbucket
Last release
5 years ago

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

License