Skip to content

TextBoxVariableBuilder🔗

Constructor🔗

new TextBoxVariableBuilder(string $name)

Methods🔗

build🔗

Builds the object.

build()

current🔗

Shows current selected variable text/value on the dashboard

current(\Grafana\Foundation\Dashboard\VariableOption $current)

defaultValue🔗

Query used to fetch values for a variable

@param string|array $query

defaultValue($query)

description🔗

Description of variable. It can be defined but null.

description(string $description)

hide🔗

Visibility configuration for the variable

hide(\Grafana\Foundation\Dashboard\VariableHide $hide)

label🔗

Optional display name

label(string $label)

name🔗

Name of variable

name(string $name)

options🔗

Options that can be selected for a variable.

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

options(array $options)

See also🔗