DataLink interface
Link configuration. The values may contain variables that need to be processed before showing the link to user.
TODO: <T extends DataQuery> is not strictly true for internal links as we do not need refId for example but all data source defined queries extend this so this is more for documentation.
Signature
export interface DataLink<T extends DataQuery = any>
Import
import { DataLink } from '@grafana/data';
Properties
Property | Type | Description |
---|---|---|
internal | InternalDataLink<T> |
|
onBuildUrl | (event: DataLinkClickEvent) => string |
|
onClick | (event: DataLinkClickEvent) => void |
|
targetBlank | boolean |
|
title | string |
|
url | string |
internal property
Signature
internal?: InternalDataLink<T>;
onBuildUrl property
Signature
onBuildUrl?: (event: DataLinkClickEvent) => string;
onClick property
Signature
onClick?: (event: DataLinkClickEvent) => void;
targetBlank property
Signature
targetBlank?: boolean;
title property
Signature
title: string;
url property
Signature
url: string;
Related Grafana resources
Opening keynote: What's new in Grafana 9?
Raj Dutt, Myrle Krantz, and Torkel Ödegaard unveil what's new in Grafana 9. Watch the opening keynote presentation from GrafanaCONline 2022. On-demand.
Unify your data with Grafana plugins: Splunk, MongoDB, Datadog, and more
Show how Grafana can be used to take data from multiple different sources and unify it, without disrupting the investments that are working today.
Getting started with Grafana Enterprise and observability
Join the Grafana Labs team for a 30-minute demo of how to get started with the Grafana Stack, so you can go from zero to observability in just a few minutes.