Skip to content

ConstantVariableBuilder🔗

Constructor🔗

new ConstantVariableBuilder(name: string)

Methods🔗

build🔗

Builds the object.

build()

allowCustomValue🔗

Allow custom values to be entered in the variable

allowCustomValue(allowCustomValue: boolean)

definition🔗

definition(definition: string)

description🔗

Description of variable. It can be defined but null.

description(description: string)

label🔗

Optional display name

label(label: string)

name🔗

Name of variable

name(name: string)

staticOptions🔗

Additional static options for query variable

staticOptions(staticOptions: dashboard.VariableOption[])

staticOptionsOrder🔗

Ordering of static options in relation to options returned from data source for query variable

staticOptionsOrder(staticOptionsOrder: "before" | "after" | "sorted")

value🔗

Query used to fetch values for a variable

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

See also🔗