ks-dynamic-forms
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

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

Package Sidebar

Install

npm i ks-dynamic-forms

Weekly Downloads

8

Version

0.0.2

License

ISC

Unpacked Size

3.49 MB

Total Files

121

Last publish

Collaborators

  • afszaman