From a50998694778de9de4c8ef14101c2b6b57170d44 Mon Sep 17 00:00:00 2001 From: Henri Courdent <122811744+hcourdent@users.noreply.github.com> Date: Wed, 27 Mar 2024 14:25:52 +0100 Subject: [PATCH] Template frontend script (#3476) --- .../apps/editor/inlineScriptsPanel/EmptyInlineScript.svelte | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/lib/components/apps/editor/inlineScriptsPanel/EmptyInlineScript.svelte b/frontend/src/lib/components/apps/editor/inlineScriptsPanel/EmptyInlineScript.svelte index 017821d590..fe01bdbd6c 100644 --- a/frontend/src/lib/components/apps/editor/inlineScriptsPanel/EmptyInlineScript.svelte +++ b/frontend/src/lib/components/apps/editor/inlineScriptsPanel/EmptyInlineScript.svelte @@ -229,8 +229,10 @@ state.foo += 1 // you may also just reassign as next statement 'state.foo = state.foo' // you can also navigate (goto), recompute a script (recompute), or set a tab (setTab) -// Inputs and display components support settings their value directly (setValue) +// Inputs and display components support settings their value directly +// setValue('a', "Bar") // Tables support setting their selected index (setSelectedIndex) +// all helpers can be found at https://www.windmill.dev/docs/apps/app-runnable-panel#frontend-scripts-helpers return state.foo`, language: 'frontend',