Skip to content

Instantly share code, notes, and snippets.

Created January 2, 2017 04:44
Show Gist options
  • Select an option

  • Save anonymous/e888d4387a00719680f8a691ce79bd8b to your computer and use it in GitHub Desktop.

Select an option

Save anonymous/e888d4387a00719680f8a691ce79bd8b to your computer and use it in GitHub Desktop.
A saved configuration for a schema form example, http://textalk.github.io/angular-schema-form/examples/bootstrap-example.html
[
{
"type": "help",
"helpvalue": "<div class=\"alert alert-info\">Grid it up with bootstrap</div>"
},
{
"type": "section",
"htmlClass": "row",
"items": [
{
"type": "section",
"htmlClass": "col-xs-6",
"items": [
"name"
]
},
{
"type": "section",
"htmlClass": "col-xs-6",
"items": [
"email"
]
}
]
},
{
"key": "comment",
"type": "textarea",
"placeholder": "Make a comment"
},
{
"type": "submit",
"style": "btn-info",
"title": "OK"
}
]
{
"type": "object",
"title": "Comment",
"properties": {
"name": {
"title": "Name",
"type": "string"
},
"email": {
"title": "Email",
"type": "string",
"pattern": "^\\S+@\\S+$",
"description": "Email will be used for evil."
},
"comment": {
"title": "Comment",
"type": "string",
"maxLength": 20,
"validationMessage": "Don't be greedy!"
}
},
"required": [
"name",
"email",
"comment"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment