diff --git a/examples/0-2-basic-example/norris-exampledata.json b/examples/0-2-basic-example/norris-exampledata.json index d2898ca2..45696e80 100644 --- a/examples/0-2-basic-example/norris-exampledata.json +++ b/examples/0-2-basic-example/norris-exampledata.json @@ -2,5 +2,5 @@ "pushups": false, "thanos": false, "bulletproof": false, - "stage":"NEW" + "stage": "NEW" } \ No newline at end of file diff --git a/examples/0-2-basic-example/norris-schema.json b/examples/0-2-basic-example/norris-schema.json index 2e75201e..3769357b 100644 --- a/examples/0-2-basic-example/norris-schema.json +++ b/examples/0-2-basic-example/norris-schema.json @@ -1,7 +1,7 @@ { "type": "object", "required": [ - "pushups", + "firstName", "thanos", "bulletproof" ], @@ -47,6 +47,13 @@ "const": false } ] + }, + "firstName": { + "type": "string", + "title": "First name", + "default": "Chuck" } - } -} + }, + "title": "Text Field", + "description": "A simple text field that is required, has a default value, sets a placeholder, includes a description. (field name will be 'firstname')" +} \ No newline at end of file diff --git a/examples/0-2-basic-example/norris-uischema.json b/examples/0-2-basic-example/norris-uischema.json index f462f910..eefac31e 100644 --- a/examples/0-2-basic-example/norris-uischema.json +++ b/examples/0-2-basic-example/norris-uischema.json @@ -16,5 +16,13 @@ "ui:options": { "inline": true } + }, + "firstName": { + "ui:autofocus": true, + "ui:emptyValue": "", + "ui:placeholder": "ui:emptyValue causes this field to always be valid despite being required", + "ui:autocomplete": "family-name", + "ui:enableMarkdownInDescription": true, + "ui:description": "Make text **bold** or *italic*. Take a look at other options [here](https://probablyup.com/markdown-to-jsx/)." } } \ No newline at end of file