Skip to content

QueryVariableBuilder🔗

Constructor🔗

new QueryVariableBuilder(name: string)

Methods🔗

build🔗

Builds the object.

build()

current🔗

Shows current selected variable text/value on the dashboard

current(current: dashboard.VariableOption)

datasource🔗

Data source used to fetch values for a variable. It can be defined but null.

datasource(datasource: dashboard.DataSourceRef)

description🔗

Description of variable. It can be defined but null.

description(description: string)

hide🔗

Visibility configuration for the variable

hide(hide: dashboard.VariableHide)

label🔗

Optional display name

label(label: string)

multi🔗

Whether multiple values can be selected or not from variable value list

multi(multi: boolean)

name🔗

Name of variable

name(name: string)

options🔗

Options that can be selected for a variable.

options(options: dashboard.VariableOption[])

query🔗

Query used to fetch values for a variable

query(query: string | Record<string, any>)

refresh🔗

refresh(refresh: dashboard.VariableRefresh)

sort🔗

Options sort order

sort(sort: dashboard.VariableSort)

See also🔗