mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
add template variable type
This commit is contained in:
parent
70071e5dad
commit
4662335f80
@ -1,6 +1,8 @@
|
||||
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 {
|
||||
|
19
public/app/types/templates.ts
Normal file
19
public/app/types/templates.ts
Normal file
@ -0,0 +1,19 @@
|
||||
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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user