diff --git a/frontend/src/lib/components/InputTransformForm.svelte b/frontend/src/lib/components/InputTransformForm.svelte index 1a9b41722c..c7746ae7f5 100644 --- a/frontend/src/lib/components/InputTransformForm.svelte +++ b/frontend/src/lib/components/InputTransformForm.svelte @@ -211,7 +211,7 @@ /> - + {/if} {:else}

Not recognized arg type {arg.type}

diff --git a/frontend/src/lib/components/flows/DynamicInputHelpBox.svelte b/frontend/src/lib/components/flows/DynamicInputHelpBox.svelte index a462c6cfa4..6091ce740a 100644 --- a/frontend/src/lib/components/flows/DynamicInputHelpBox.svelte +++ b/frontend/src/lib/components/flows/DynamicInputHelpBox.svelte @@ -3,6 +3,8 @@ import Icon from 'svelte-awesome' import { slide } from 'svelte/transition' + export let i: number = 1 + $: opened = false @@ -27,29 +29,29 @@ >

Dynamic arg help

- When a field is "dynamic", its value is computed dynamically as the evaluation of its - corresponding typescript snippet. + When a field is using the "Raw Javascript Editor", its value is computed dynamically as the + evaluation of its corresponding javascript snippet.

- That snippet can be single line: + That snippet can be a single line:
last_result.myarg
- or multiline: + or a multiline:
let x = 5;
 x + 2

- If it is multiline, the last statement before the final expressionMUST END WITH ; and a newline

The snippet can also be a string template: -
`Hello ${params.name}, all your base ${previous_result.base_name}
-belong to us`
+ `Hello ${params.name}, all your base ${previous_result.base_name} belong + to us` However, the last line must always be the final expression.

- The snippet can use any typescript primitives, and the following flow specific objects and + The snippet can use any javascript primitives, and the following flow specific objects and functions:

+

To re-enable editor assistance, import the helper functions types using:

+ {`import { previous_result, flow_input, step, variable, resource, params } from 'windmill@${i}'`} {/if}