From c960f163f78daf2aa4a49bb5bbc2cb0ec3b6d5ab Mon Sep 17 00:00:00 2001 From: Marin Skorsur Date: Tue, 12 Jul 2022 10:50:00 +0200 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=93=9D=20Fix=20snippets=20for=20check?= =?UTF-8?q?box=20and=20switch=20activity=20metadata=20elements?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/tailor/developer-guide/configuration.md | 28 ++++++-------------- 1 file changed, 8 insertions(+), 20 deletions(-) diff --git a/docs/tailor/developer-guide/configuration.md b/docs/tailor/developer-guide/configuration.md index 17e48fe..c5108ce 100644 --- a/docs/tailor/developer-guide/configuration.md +++ b/docs/tailor/developer-guide/configuration.md @@ -330,16 +330,10 @@ Add image ``` json meta: [{ - "key": "textareaKey", - "type": "TEXTAREA", - "label": "Description", - "placeholder": "Click to add...", - "validate": { - "rules": { - "required": false, - "max": 250 - } - } + "key": "checkboxKey", + "type": "CHECKBOX", + "label": "Generic checkbox label", + "description": "Description for a checkbox" }] ``` @@ -355,16 +349,10 @@ Add image ``` json meta: [{ - "key": "textareaKey", - "type": "TEXTAREA", - "label": "Description", - "placeholder": "Click to add...", - "validate": { - "rules": { - "required": false, - "max": 250 - } - } + "key": "switchKey", + "type": "SWITCH", + "label": "Generic switch label", + "description": "Description for a switch" }] ``` From 25888b48b319097f36a54eb685126589c949aeba Mon Sep 17 00:00:00 2001 From: Marin Skorsur Date: Wed, 13 Jul 2022 09:39:31 +0200 Subject: [PATCH 2/2] Wrap meta props in double quotes --- docs/tailor/developer-guide/configuration.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/docs/tailor/developer-guide/configuration.md b/docs/tailor/developer-guide/configuration.md index c5108ce..55f26d5 100644 --- a/docs/tailor/developer-guide/configuration.md +++ b/docs/tailor/developer-guide/configuration.md @@ -280,7 +280,7 @@ Code needs to be added in `.activities-rc.json` file, inside of the `OUTLINE_LEV #### Code example ``` json -meta: [{ +"meta": [{ "key": "inputKey", "type": "INPUT", "label": "Input field", @@ -304,7 +304,7 @@ Add image #### Code example ``` json -meta: [{ +"meta": [{ "key": "textareaKey", "type": "TEXTAREA", "label": "Description", @@ -329,7 +329,7 @@ Add image #### Code example ``` json -meta: [{ +"meta": [{ "key": "checkboxKey", "type": "CHECKBOX", "label": "Generic checkbox label", @@ -348,7 +348,7 @@ Add image #### Code example ``` json -meta: [{ +"meta": [{ "key": "switchKey", "type": "SWITCH", "label": "Generic switch label", @@ -367,7 +367,7 @@ Add image #### Code example ``` json -meta: [{ +"meta": [{ "key": "colorKey", "type": "COLOR", "label": "Pick a color" @@ -385,7 +385,7 @@ Add image #### Code example ``` json -meta: [{ +"meta": [{ "key": "selectKey", "type": "SELECT", "label": "Select From List", @@ -413,7 +413,7 @@ Add image #### Code example ``` json -meta: [{ +"meta": [{ "key": "multiselectKey", "type": "MULTISELECT", "label": "Objective", @@ -442,7 +442,7 @@ Add image #### Code example ``` json -meta: [{ +"meta": [{ "key": "datePicker", "type": "DATETIME", "label": "date picker" @@ -460,7 +460,7 @@ Add image #### Code example ``` json -meta: [{ +"meta": [{ "key": "html", "type": "HTML", "label": "html with quill" @@ -478,7 +478,7 @@ Add image #### Code example ``` json -meta: [{ +"meta": [{ "key": "file", "type": "FILE", "label": "File Upload",