0.4.1 • Published 7 years ago

ngx-smart-form v0.4.1

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

ngx-smart-form

Join the chat at https://gitter.im/ngx-smart-form/Lobby

npm version Maintainability Test Coverage Build Status

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.

0.4.1

7 years ago

0.4.0

7 years ago

0.3.0

7 years ago

0.2.2

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.0

7 years ago

0.0.1

7 years ago