2020-02-26 03:03:53 -06:00
|
|
|
+++
|
|
|
|
# -----------------------------------------------------------------------
|
|
|
|
# Do not edit this file. It is automatically generated by API Documenter.
|
|
|
|
# -----------------------------------------------------------------------
|
|
|
|
title = "QueryEditorProps"
|
|
|
|
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
|
|
|
type = "docs"
|
|
|
|
+++
|
|
|
|
|
|
|
|
## QueryEditorProps interface
|
|
|
|
|
|
|
|
<b>Signature</b>
|
|
|
|
|
|
|
|
```typescript
|
|
|
|
export interface QueryEditorProps<DSType extends DataSourceApi<TQuery, TOptions>, TQuery extends DataQuery = DataQuery, TOptions extends DataSourceJsonData = DataSourceJsonData>
|
|
|
|
```
|
|
|
|
<b>Import</b>
|
|
|
|
|
|
|
|
```typescript
|
|
|
|
import { QueryEditorProps } from '@grafana/data';
|
|
|
|
```
|
|
|
|
<b>Properties</b>
|
|
|
|
|
|
|
|
| Property | Type | Description |
|
|
|
|
| --- | --- | --- |
|
|
|
|
| [data](#data-property) | <code>PanelData</code> | Contains query response filtered by refId of QueryResultBase and possible query error |
|
|
|
|
| [datasource](#datasource-property) | <code>DSType</code> | |
|
2020-04-28 02:53:58 -05:00
|
|
|
| [exploreId](#exploreid-property) | <code>any</code> | |
|
|
|
|
| [exploreMode](#exploremode-property) | <code>ExploreMode</code> | |
|
2020-05-14 14:34:59 -05:00
|
|
|
| [history](#history-property) | <code>HistoryItem[]</code> | |
|
|
|
|
| [onBlur](#onblur-property) | <code>() => void</code> | |
|
2020-02-26 03:03:53 -06:00
|
|
|
| [onChange](#onchange-property) | <code>(value: TQuery) => void</code> | |
|
|
|
|
| [onRunQuery](#onrunquery-property) | <code>() => void</code> | |
|
|
|
|
| [query](#query-property) | <code>TQuery</code> | |
|
|
|
|
|
|
|
|
### data property
|
|
|
|
|
|
|
|
Contains query response filtered by refId of QueryResultBase and possible query error
|
|
|
|
|
|
|
|
<b>Signature</b>
|
|
|
|
|
|
|
|
```typescript
|
|
|
|
data?: PanelData;
|
|
|
|
```
|
|
|
|
|
|
|
|
### datasource property
|
|
|
|
|
|
|
|
<b>Signature</b>
|
|
|
|
|
|
|
|
```typescript
|
|
|
|
datasource: DSType;
|
|
|
|
```
|
|
|
|
|
2020-04-28 02:53:58 -05:00
|
|
|
### exploreId property
|
|
|
|
|
|
|
|
<b>Signature</b>
|
|
|
|
|
|
|
|
```typescript
|
|
|
|
exploreId?: any;
|
|
|
|
```
|
|
|
|
|
|
|
|
### exploreMode property
|
|
|
|
|
|
|
|
<b>Signature</b>
|
|
|
|
|
|
|
|
```typescript
|
|
|
|
exploreMode?: ExploreMode;
|
|
|
|
```
|
|
|
|
|
2020-05-14 14:34:59 -05:00
|
|
|
### history property
|
|
|
|
|
|
|
|
<b>Signature</b>
|
|
|
|
|
|
|
|
```typescript
|
|
|
|
history?: HistoryItem[];
|
|
|
|
```
|
|
|
|
|
|
|
|
### onBlur property
|
|
|
|
|
|
|
|
<b>Signature</b>
|
|
|
|
|
|
|
|
```typescript
|
|
|
|
onBlur?: () => void;
|
|
|
|
```
|
|
|
|
|
2020-02-26 03:03:53 -06:00
|
|
|
### onChange property
|
|
|
|
|
|
|
|
<b>Signature</b>
|
|
|
|
|
|
|
|
```typescript
|
|
|
|
onChange: (value: TQuery) => void;
|
|
|
|
```
|
|
|
|
|
|
|
|
### onRunQuery property
|
|
|
|
|
|
|
|
<b>Signature</b>
|
|
|
|
|
|
|
|
```typescript
|
|
|
|
onRunQuery: () => void;
|
|
|
|
```
|
|
|
|
|
|
|
|
### query property
|
|
|
|
|
|
|
|
<b>Signature</b>
|
|
|
|
|
|
|
|
```typescript
|
|
|
|
query: TQuery;
|
|
|
|
```
|