angular2-json-schema-form
Version:
Angular 2 JSON Schema Form builder
55 lines (54 loc) • 989 B
JSON
{
"schema": {
"name": {
"title": "Name",
"type": "string"
},
"nick": {
"title": "Nick name",
"type": "string"
},
"title": {
"title": "Title",
"type": "string"
},
"tags": {
"title": "Tags",
"type": "array",
"items": {
"type": "string"
},
"default": ["abc", "def"]
}
},
"customFormItems": {
"name": {
"type": "text",
"autocomplete": {
"source": ["abc", "bed", "bee", "dog", "cat"]
}
},
"nick": {
"type": "text",
"typeahead": {
"source": ["abc", "bed", "bee", "dog", "cat"]
}
},
"title": {
"type": "text",
"tagsinput": {
"typeahead": {
"source": ["abc", "bed", "bee", "dog", "cat"]
}
}
},
"tags": {
"type": "tagsinput",
"tagsinput": {
"typeahead": {
"source": ["abc", "bed", "bee", "dog", "cat"]
}
}
}
}
}