Skip to content

TextBoxVariableBuilder🔗

Constructor🔗

new TextBoxVariableBuilder(string $name)

Methods🔗

build🔗

Builds the object.

build()

allFormat🔗

Format to use while fetching all values from data source, eg: wildcard, glob, regex, pipe, etc.

allFormat(string $allFormat)

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)

id🔗

Unique numeric identifier for the variable.

id(string $id)

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🔗