Skip to content

a client-side dynamic form generator based JSON data structure

License

Notifications You must be signed in to change notification settings

hcoz/dynamicform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Published on webcomponents.org

dynamicform

a client-side dynamic form generator

This library enables adding forms with "dynamicform" custom HTML tag. This tag needs an 'id' attribute and 'data-json' attribute includes path of related form JSON file. There is an example HTML file in repo.

Installing

You can use bower to install this package. Just run this command:

bower install dynamicform

Also, you can use it by downloading directly under 'dist' folder.

There is a task runner for minifying it. You can run it also by this command:

gulp compress

There is an example usage below:

<dynamicform id="form1" data-json="../forms/form1.json"></dynamicform>

This JSON file includes the structure of the related form. There is an example JSON file in repo.

There are two versions of this library:

  1. JQuery version => jqdynamicform.js
  2. Pure JavaScript version => dynamicform.js
  • Minified files are also available

Contributing

Any contribution, suggestion or comment is more than welcome.

Author

  • Halil Can Ozcelik - Initial work - hcoz

License

This project is licensed under the Apache License - see the LICENSE file for details