diff --git a/example/test/UI_SimpleForm.json b/example/test/UI_SimpleForm.json new file mode 100644 index 00000000..fbf1077b --- /dev/null +++ b/example/test/UI_SimpleForm.json @@ -0,0 +1,44 @@ +{ + "schema": { + "friends": { + "type": "array", + "items": { + "type": "object", + "title": "Friend", + "properties": { + "nick": { + "type": "string", + "title": "Nickname", + "required": true + }, + "gender": { + "type": "string", + "title": "Gender", + "enum": ["male", "female", "alien"] + }, + "age": { + "type": "integer", + "title": "Age" + } + } + } + } + }, + "uiSchema": { + "friends": { + "items": { + "nick": { + "ui:autofocus": true, + "ui:emptyValue": "" + }, + "gender": { + "ui:widget": "radio" + }, + "age": { + "ui:widget": "updown", + "ui:title": "Years" + } + } + } + } +}