Commit 58bea1de by Erik Sundell

add template variable type

parent 96d65b55
import React from 'react';
import _ from 'lodash';
import Select from 'app/core/components/Select/Select';
import { Variable } from 'app/types/templates';
export interface Props {
onChange: (value: string) => void;
......@@ -10,7 +12,7 @@ export interface Props {
placeholder?: string;
className?: string;
groupName?: string;
variables?: any[];
variables?: Variable[];
}
interface State {
......
export interface Variable {
datasource: any;
query: any;
regex: any;
sort: any;
options: any;
current: any;
refresh: number;
hide: number;
name: string;
multi: boolean;
includeAll: boolean;
useTags: boolean;
tagsQuery: string;
tagValuesQuery: string;
tags: any[];
skipUrlSync: boolean;
definition: string;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment