Coder Social home page Coder Social logo

supreetsethi / angular-form-builder-1 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hossein13m/angular-form-builder

0.0 0.0 0.0 13.31 MB

Form Builder/Viewer for Angular

Home Page: https://www.ag-form-builder.hmousavi.dev

License: MIT License

Shell 0.11% JavaScript 2.70% TypeScript 56.81% HTML 31.17% SCSS 9.20%

angular-form-builder-1's Introduction

AG-FormBuilder

AG-FormBuilder is an Angular library for creating dynamic forms and interacting with them.

Here is an image of AG-Form Builder

AG Form Builder

Here is an image of AG-Form Viewer

AG Form Builder

Working Demo

You can find a working demo here. Feel free to work with it and try it out. Make sure to check your console for the output once you want to save the form to get the data structure of ag-form builder/viewer

Installation

Use the package manager NPM to install AG-FormBuilder.

npm i ag-form-builder

Usage

FormBuilder

import AgFormBuilderModule into your module then you can use it in your template like bellow:

<lib-ag-form-builder (emittedForm)="handleFormInfo($event)"></lib-ag-form-builder>

Locale

You have two options for the locale of your calendar, which you can set with date locale. You can find a list of them here.

<lib-ag-form-builder [dateLocale]="'en-US'"></lib-ag-form-builder>

Edit An Existing Form

If you want to edit an existing form, you need to pass the data to the component like below:

<lib-ag-form-builder [formData]="mockForm"></lib-ag-form-builder>

Make sure that the mockForm has a type of : AgMockFormDataModel

FormViewer

import AgFormViewerModule into your module then you can use it in your template like bellow:

<lib-ag-form-viewer [formInfo]="mockForm" (emittedFormViewerInfo)="handleFormViewerInfo($event)"></lib-ag-form-viewer>

Contributing

Pull requests are welcome. Please open an issue first to discuss what you would like to change for major changes. You can also discuss new ideas on issues.

Star

If this tool helped you with your projects, you could give it a star!

License

MIT

angular-form-builder-1's People

Contributors

dependabot[bot] avatar hossein13m avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.