Skip to content

Commit 28fdca7

Browse files
committed
Add new line
1 parent e34d680 commit 28fdca7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

content/en/actions/app_builder/embedded_apps.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@ To list all of the available values of a specific template variable, use the fol
4444
${global?.dashboard?.templateVariables?.find(v => v.name === '<TEMPLATE_VARIABLE_NAME>')?.availableValues}
4545
{{< /code-block >}}
4646

47+
To list all of the available values when using a select component, use the following template expression:
48+
49+
{{< code-block lang="json" disable_copy="false">}}
50+
${global?.dashboard?.templateVariables?.find(v => v.name === '<TEMPLATE_VARIABLE_NAME>')?.availableValues.map(availableValue => {return {label: availableValue, value:availableValue}})}
51+
{{< /code-block >}}
52+
4753
To get the selected value of a template variable, use the following template expressions:
4854

4955
- For a single-select template variable:

0 commit comments

Comments
 (0)