ngx-smart-form
    TypeScript icon, indicating that this package has built-in type declarations

    0.4.1 • Public • Published

    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.

    Install

    npm i ngx-smart-form

    DownloadsWeekly Downloads

    0

    Version

    0.4.1

    License

    MIT

    Last publish

    Collaborators

    • sergot