1.1.3 • Published 11 months ago
@konum/formy v1.1.3
Table of Contents
About The Project
Dynamic forms for angular with a GUI editor. Live demo: https://stackblitz.com/edit/formy
Built With
- Angular 8
- Bootstrap
Getting Started
To get a local copy up and running follow these simple steps.
Prerequisites
Add Formy package to your project.
npm install @konum/formy
Project installation
- Clone the repo
git clone https://github.com/github_username/repo.git
npm install
ng serve
Usage
Import Formy module
import {FormyModule} from 'formy';
@NgModule({
declarations: [....],
imports: [....
FormyModule
],
providers: [.....]
})
Form Editor:
<lib-formy-editor [questions]="questions" (onSave)="save($event)"></lib-formy-editor>
lib-formy-editor has to optiona inputs:
- questions: array of FormyInputBase objects
- questionsJson: string with array of FormyInputBase objects
onSave event will return and array of FormyInputBase object.
Form for filling:
<lib-formy [questions]="questions" (onSave)="save($event)"></lib-formy>
lib-formy has to optiona inputs:
- questions: array of FormyInputBase objects
- questionsJson: string with array of FormyInputBase objects
onSave event will return and array of FormyInputBase object.
Roadmap
- Language support for editor
Contributing
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
License
Distributed under the MIT License.
Contact
Guillermo Gefaell - @twitter_handle - email
Project Link: https://github.com/konum/formy