Skip to content

ConstantVariableBuilder🔗

Constructor🔗

new ConstantVariableBuilder(string $name)

Methods🔗

build🔗

Builds the object.

build()

allowCustomValue🔗

Allow custom values to be entered in the variable

allowCustomValue(bool $allowCustomValue)

definition🔗

definition(string $definition)

description🔗

Description of variable. It can be defined but null.

description(string $description)

label🔗

Optional display name

label(string $label)

name🔗

Name of variable

name(string $name)

staticOptions🔗

Additional static options for query variable

@param array<\Grafana\Foundation\Dashboard\VariableOption> $staticOptions

staticOptions(array $staticOptions)

staticOptionsOrder🔗

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

staticOptionsOrder(\Grafana\Foundation\Dashboard\VariableModelStaticOptionsOrder $staticOptionsOrder)

value🔗

Query used to fetch values for a variable

@param string|array $query

value($query)

See also🔗