如何从json-schema创建一个表单? [英] How to Create a form from a json-schema?
问题描述
如何从JSON Schema创建表单?
How to create form from JSON Schema?
我在JavaScript和jquery中编写代码。使用这个模板部分,如Form I,我使用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模式中得到了一些用于创建表单的链接。
So I got some links for create form from JSON Schema.
参考链接:
http://neyric.github.io/inputex/examples/json-schema.html
Reference link : http://neyric.github.io/inputex/examples/json-schema.html
在我的表单中:
输入元素:文本框,textarea,选择列表,提交和取消按钮。
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?
推荐答案
jsonform - Build JSON Schema的形式。轻松模板。兼容Twitter Bootstrap开箱即用。
jsonform - Build forms from JSON Schema. Easily template-able. Compatible with Twitter Bootstrap out of the box.
https://github.com/joshfire/jsonform
这篇关于如何从json-schema创建一个表单?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!