From acd31618f23d4fc51545f763e895fb7c57537337 Mon Sep 17 00:00:00 2001 From: Maurits Lourens Date: Tue, 3 Aug 2021 21:30:06 +0200 Subject: [PATCH 1/2] add radio buttons to standard components options picker --- packages/standard-components/manifest.json | 16 ++++++++++ .../src/forms/OptionsField.svelte | 32 +++++++++++++------ 2 files changed, 38 insertions(+), 10 deletions(-) diff --git a/packages/standard-components/manifest.json b/packages/standard-components/manifest.json index 2d0384056e..bb50c7a7e3 100644 --- a/packages/standard-components/manifest.json +++ b/packages/standard-components/manifest.json @@ -1841,6 +1841,22 @@ "key": "placeholder", "placeholder": "Choose an option" }, + { + "type": "select", + "label": "Type", + "key": "optionsType", + "placeholder": "Pick an options type", + "options": [ + { + "label": "Select", + "value": "select" + }, + { + "label": "Radio buttons", + "value": "radio" + } + ] + }, { "type": "boolean", "label": "Disabled", diff --git a/packages/standard-components/src/forms/OptionsField.svelte b/packages/standard-components/src/forms/OptionsField.svelte index 3955839fd0..7674cb0bf8 100644 --- a/packages/standard-components/src/forms/OptionsField.svelte +++ b/packages/standard-components/src/forms/OptionsField.svelte @@ -1,11 +1,12 @@