From eb1622a9f6b463cddbaf820008b5b0fd2e8a4ab8 Mon Sep 17 00:00:00 2001 From: sartography-automated-committer Date: Thu, 26 Oct 2023 15:00:20 +0000 Subject: [PATCH] User: cris@sartography.com clicked save for playground/cris-tolbert/vacation-approval/approval-uischema.json --- .../vacation-approval/approval-schema.json | 18 ++++++++++++++++-- .../vacation-approval/approval-uischema.json | 3 +++ 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/playground/cris-tolbert/vacation-approval/approval-schema.json b/playground/cris-tolbert/vacation-approval/approval-schema.json index 3e8c395c..fb90bf92 100644 --- a/playground/cris-tolbert/vacation-approval/approval-schema.json +++ b/playground/cris-tolbert/vacation-approval/approval-schema.json @@ -1,6 +1,6 @@ { - "title": "Text Area", - "description": "A larger resizable area to enter longer text. (field name will be 'bio')", + "title": "Multiple Choice List", + "description": "Build a multiple choice list with a predefined list of options", "properties": { "done": { "type": "boolean", @@ -10,6 +10,20 @@ "bio": { "type": "string", "title": "Bio" + }, + "multipleChoicesList": { + "type": "array", + "title": "A multiple choices list", + "items": { + "type": "string", + "enum": [ + "foo", + "bar", + "fuzz", + "qux" + ] + }, + "uniqueItems": true } }, "type": "object" diff --git a/playground/cris-tolbert/vacation-approval/approval-uischema.json b/playground/cris-tolbert/vacation-approval/approval-uischema.json index 9dc870cd..fe95e2f8 100644 --- a/playground/cris-tolbert/vacation-approval/approval-uischema.json +++ b/playground/cris-tolbert/vacation-approval/approval-uischema.json @@ -1,5 +1,8 @@ { "bio": { "ui:widget": "textarea" + }, + "multipleChoicesList": { + "ui:widget": "checkboxes" } } \ No newline at end of file