https://github.com/sergot/ngx-smart-form
An Angular module for generating forms in your application.
https://github.com/sergot/ngx-smart-form
Last synced: over 1 year ago
JSON representation
An Angular module for generating forms in your application.
- Host: GitHub
- URL: https://github.com/sergot/ngx-smart-form
- Owner: sergot
- License: mit
- Created: 2017-10-15T15:59:17.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-10-27T22:10:58.000Z (over 8 years ago)
- Last Synced: 2025-02-03T22:35:37.900Z (over 1 year ago)
- Language: JavaScript
- Homepage: https://sergot.github.io/ngx-smart-form/
- Size: 1.29 MB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ngx-smart-form
[](https://gitter.im/ngx-smart-form/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[](https://badge.fury.io/js/ngx-smart-form)
[](https://codeclimate.com/github/sergot/ngx-smart-form/maintainability)
[](https://codeclimate.com/github/sergot/ngx-smart-form/test_coverage)
[](https://travis-ci.org/sergot/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
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](https://github.com/swimlane/ngx-datatable/),
I used this repo as a point of start to create an angular2+ module.