jsonform
Version:
Client-side JavaScript library that generates HTML forms from structured data models expressed using a JSON schema, possibly completed by a form layout description.
47 lines (46 loc) • 706 B
JavaScript
var tests = [
{
name: 'minimal',
jsonform: {
schema: {
check: {
type: 'boolean',
title: 'Title'
}
}
}
},
{
name: 'inline',
jsonform: {
schema: {
check: {
type: 'boolean',
title: 'Title',
'default': true
}
},
form: [
{
key: 'check',
inlinetitle: 'Check da box'
}
]
}
},
{
name: 'clearing bug',
jsonform: {
schema: {
check: {
type: 'boolean',
title: 'Title'
},
checktoo: {
type: 'boolean',
title: 'Other title'
}
}
}
}
];