项目作者: hcoz

项目描述 :
a client-side dynamic form generator based JSON data structure
高级语言: JavaScript
项目地址: git://github.com/hcoz/dynamicform.git
创建时间: 2017-09-01T22:34:53Z
项目社区:https://github.com/hcoz/dynamicform

开源协议:Apache License 2.0

下载


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:

  1. 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:

  1. gulp compress

There is an example usage below:

  1. <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