ngx-smart-form
v0.4.1
Published
ngx-smart-form is a Angular2+ form components which lets you generate forms easily.
Downloads
16
Maintainers
Readme
ngx-smart-form
ngx-smart-form is an Angular module for generating forms in your application.
Work still in progress - help will be appreciated. :)
Features
- generates correct angular form based on provided settings
- ...
Installation
npm install --save-dev ngx-smart-form
Usage
<ngx-smart-form [settings]="settings" (onSubmit)="onSubmit($event)"></ngx-smart-form>
Where settings look like:
settings = {
inputs: {
field: {
label: 'Field',
type: 'text',
},
},
}
and onSubmit:
onSubmit(form) {
this.items.push(form);
}
Future features
- custom classes
- custom buttons
- generating forms based on passed model
TODOs
- Docs
- Ghpages - better example site
- E2E tests - protractor
Thanks to
Thanks to swimlane/ngx-datatable, I used this repo as a point of start to create an angular2+ module.