0.1.19 • Published 2 years ago

@netiq/dynamic-forms v0.1.19

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

DynamicForms

#Demo https://dynamic-components.github.io/#/dynamic-forms/all

#Simple Dynamic forms.

Form json

 import { TextArea, Textbox } from 'dynamic-forms';

 export class FormsComponent implements OnInit {

   inputfields: any[] = [
     new Textbox({
       key: "Name",
       label: "Name",
       type: "text",
       value: '',
       required: true,
     }),
     new TextArea({
       key: "Discription",
       label: "Description",
       type: "text",
       value: '',
       required: false,
     })
   ];

   submit(value: string) {
     console.log(JSON.parse(value));
   }
 }

Template

<dynamic-forms [inputFields]="inputfields" (submit)="submit($event)">
  <div class=" btn-container m-t-md">
    <button type="submit" class="btn-primary btn">
      Save
    </button>
    <button type="button" class="js-details-target btn">
      Cancel
    </button>
  </div>
</dynamic-forms>

#module

import { DynamicFormModule } from 'dynamic-forms';

  imports: [
    DynamicFormModule
  ],
0.1.15

2 years ago

0.1.16

2 years ago

0.1.17

2 years ago

0.1.18

2 years ago

0.1.19

2 years ago

0.1.11

2 years ago

0.1.13

2 years ago

0.1.14

2 years ago

0.1.10

2 years ago

0.1.0

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.9

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.0-watch

2 years ago

0.0.1

2 years ago