如何从 json-schema 创建表单? [英] How to Create a form from a json-schema?

查看:62
本文介绍了如何从 json-schema 创建表单?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何从 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?

推荐答案

jsonform - 从 JSON 模式构建表单.易于模板化.开箱即用,与 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆