API Reference@grafana/runtime › getTemplateSrv

getTemplateSrv variable

getTemplateSrv variable

Used to retrieve the TemplateSrv that can be used to fetch available template variables.

Signature

getTemplateSrv: () => TemplateSrv

Import

import { getTemplateSrv } from '@grafana/runtime';