问题描述
如何从 JSON Schema 创建表单?
How to create form from JSON Schema?
我正在用 JavaScript 和 jquery 编写代码.使用像 Form 这样的模板部分,我使用 haml 创建它并将其添加到 js 文件中.对于后端,我正在使用 python.我正在使用 Django 框架.
I am writing code in JavaScript and jquery. With this template part like Form I am creating this with haml and adding this in js file.For backend I am using python. I am using Django framework.
所以我得到了一些从 JSON Schema 创建表单的链接.
So I got some links for create form from JSON Schema.
参考链接:http://neyric.github.io/inputex/examples/json-schema.html
在我的表格中:输入元素:存在文本框、文本区域、选择列表、提交和取消按钮.
In my Form :Input elemets : textboxes, textarea, select list, submit and cancel buttons are present.
所以我想问一下用JSON模式创建表单是否可行?如果是的话,你能提供一些好的链接吗?
So I want to ask is creating form with JSON schema is feasible or not?If yes then, can you provide some good links?
推荐答案
https://github.com/joshfire/jsonform
这篇关于如何从 json-schema 创建表单?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!