From 406cba4e732c04a1389f80849b43684f3c2fcf29 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Fri, 3 Feb 2023 02:19:58 +0100 Subject: [PATCH] improve instructions --- frontend/src/lib/components/apps/editor/Component.svelte | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/lib/components/apps/editor/Component.svelte b/frontend/src/lib/components/apps/editor/Component.svelte index f99fa53be3..8880001825 100644 --- a/frontend/src/lib/components/apps/editor/Component.svelte +++ b/frontend/src/lib/components/apps/editor/Component.svelte @@ -28,7 +28,10 @@ 1. add the the type to the union below 2. add the component to the components record 3. add the comoonent to one of the components set (buttons, inputs, display) - 4. (optionally) add the default code associated to it in DEFAULT_CODES + 4. add the component in the svelte if switch + 5. (optionally) add the default code associated to it in DEFAULT_CODES + + To look at a full example in this file, Ctrl+f "plotlycomponent" */ export type TextComponent = BaseComponent<'textcomponent'> export type TextInputComponent = BaseComponent<'textinputcomponent'>