Skip to content

DashboardLinkBuilder🔗

Constructor🔗

new DashboardLinkBuilder(string $title)

Methods🔗

build🔗

Builds the object.

build()

asDropdown🔗

If true, all dashboards links will be displayed in a dropdown. If false, all dashboards links will be displayed side by side. Only valid if the type is dashboards

asDropdown(bool $asDropdown)

icon🔗

Icon name to be displayed with the link

icon(string $icon)

includeVars🔗

If true, includes current template variables values in the link as query params

includeVars(bool $includeVars)

keepTime🔗

If true, includes current time range in the link as query params

keepTime(bool $keepTime)

tags🔗

List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards

@param array $tags

tags(array $tags)

targetBlank🔗

If true, the link will be opened in a new tab

targetBlank(bool $targetBlank)

title🔗

Title to display with the link

title(string $title)

tooltip🔗

Tooltip to display when the user hovers their mouse over it

tooltip(string $tooltip)

type🔗

Link type. Accepted values are dashboards (to refer to another dashboard) and link (to refer to an external resource)

type(\Grafana\Foundation\Dashboard\DashboardLinkType $type)

url🔗

Link URL. Only required/valid if the type is link

url(string $url)

See also🔗