From ddb50f2201bb8857759b602da78d5dee209b42fc Mon Sep 17 00:00:00 2001 From: "Jason.Chuah" Date: Sun, 9 Jul 2023 01:34:13 +0800 Subject: [PATCH] enhancement: add checkbox example --- index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index ed2ef84..53c9ef7 100644 --- a/index.html +++ b/index.html @@ -114,11 +114,11 @@ null, null, "Required properties supported in both v3 and v4+ spec formats. Last one format takes preference. More info [here](https://github.com/brutusin/json-forms/issues/56)"], - ["Radio button", - {"$schema": "http://json-schema.org/draft-03/schema#", "type": "object", "properties": {"radio1": {"type": "boolean","format": "radio","title": "Animal", "required": true, "enum": ["Dog", "Cat", "Bird"]}}}, + ["Radio button and checkbox", + {"$schema":"http://json-schema.org/draft-03/schema#","type":"object","properties":{"radio1":{"type":"boolean","format":"radio","title":"Animal","required":true,"enum":["Dog","Cat","Bird"]},"checkbox":{"type":"boolean","format":"checkbox","title":"Transportation","required":true,"enum":["Vehicle","Airplane","Cruise"]}}}, null, null, - "Boolean supporting radio type. Must define `format` and `enum` fields."] + "Boolean supporting radio and checkbox type. Must define `format` and `enum` fields."] ]; var selectedTab = "schema";