Merge pull request #14898 from grafana/hughag/template-variable-support-for-react-panels

Template variable support for react panels
This commit is contained in:
Torkel Ödegaard
2019-01-16 11:39:30 +01:00
committed by GitHub
6 changed files with 24 additions and 7 deletions

View File

@@ -1,6 +1,8 @@
import { TimeSeries, LoadingState } from './series';
import { TimeRange } from './time';
export type InterpolateFunction = (value: string, format?: string | Function) => string;
export interface PanelProps<T = any> {
timeSeries: TimeSeries[];
timeRange: TimeRange;
@@ -9,6 +11,7 @@ export interface PanelProps<T = any> {
renderCounter: number;
width: number;
height: number;
onInterpolate: InterpolateFunction;
}
export interface PanelOptionsProps<T = any> {