0.0.6 • Published 2 years ago

add-dynamic-inputs v0.0.6

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

Add Dynamic Inputs

This library was generated with Angular CLI version 12.2.0. It's used to add dynamic input fields in your application.

Installation & Usage

  1. npm i add-dynamic-inputs
  2. Add below line in your Module ts file,
import { AddDynamicModule } from 'add-dynamic-inputs';
  1. Add imported module name inside @NgModule -> imports in same module ts file.
  2. Include below given line in your angular.json under projects -> app name -> architect -> options
"preserveSymlinks": true
  1. Add your code using <add-dynamic-inputs/> in your component like following example code.

Example

<add-dynamic-inputs field1="Name" field2="Email" addButtonType="+" removeButtonType="-" 
(newItemEvent)="acceptData($event)"> 
</add-dynamic-inputs>

props for the <add-dynamic-inputs/>:

KeysDescription
field1, field2, ... field10add label name upto 10 fields
addButtonTypedisplays add button name for adding fields
removeButtonTypedisplays remove button name for removing fields
newItemEventoutput for added input fields given in array using this event
0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago