Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit a6c14b8

Browse files
committed
add type
1 parent bd99f29 commit a6c14b8

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

‎guides/using-parameters.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ parameters:
131131
min_revenue:
132132
label: "Minimum Revenue"
133133
description: "Filter for minimum revenue threshold"
134+
type: "number"
134135
options:
135136
- 1000
136137
- 5000

‎references/lightdash-config-yml.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ parameters:
139139
min_revenue:
140140
label: "Minimum Revenue"
141141
description: "Filter for minimum revenue threshold"
142+
type: "number"
142143
options:
143144
- 1000
144145
- 5000
@@ -158,6 +159,7 @@ Each parameter is defined as a key-value pair where the key is the parameter nam
158159
| :----------------------- | :------- | :------------------------- | :---------- |
159160
| `label` | Yes | string | A user-friendly label for the parameter as it will be displayed in the UI. |
160161
| `description` | No | string | A description of the parameter. |
162+
| `type` | No | "string" or "number" | The type of the parameter. Defaults to "string" if not specified. |
161163
| `options` | No | Array of strings or numbers | A list of possible values for the parameter. |
162164
| `default` | No | string, number, or Array of strings/numbers | The default value(s) for the parameter. |
163165
| `multiple` | No | boolean | Whether the parameter input will be a multi-select. |

‎references/tables.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,7 @@ models:
360360
min_order_value:
361361
label: "Minimum Order Value"
362362
description: "Filter for minimum order value"
363+
type: "number"
363364
options:
364365
- 100
365366
- 500
@@ -379,6 +380,7 @@ Each parameter is defined as a key-value pair where the key is the parameter nam
379380
| :----------------------- | :------- | :------------------------- | :---------- |
380381
| `label` | Yes | string | A user-friendly label for the parameter as it will be displayed in the UI. |
381382
| `description` | No | string | A description of the parameter. |
383+
| `type` | No | "string" or "number" | The type of the parameter. Defaults to "string" if not specified. |
382384
| `options` | No | Array of strings or numbers | A list of possible values for the parameter. |
383385
| `default` | No | string, number, or Array of strings/numbers | The default value(s) for the parameter. |
384386
| `multiple` | No | boolean | Whether the parameter input will be a multi-select. |

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /