Menu

Important: This documentation is about an older version. It's relevant only to the release noted, many of the features and functions have been updated or replaced. Please view the current version.

Enterprise Open source

QueryEditorProps interface

Signature

typescript
export interface QueryEditorProps<DSType extends DataSourceApi<TQuery, TOptions>, TQuery extends DataQuery = DataQuery, TOptions extends DataSourceJsonData = DataSourceJsonData, TVQuery extends DataQuery = TQuery> 

Import

typescript
import { QueryEditorProps } from '@grafana/data';

Properties

PropertyTypeDescription
appCoreApp
dataPanelDataContains query response filtered by refId of QueryResultBase and possible query error
datasourceDSType
exploreIdany
historyHistoryItem[]
onBlur() => void
onChange(value: TVQuery) => void
onRunQuery() => void
queriesDataQuery[]
queryTVQuery
rangeTimeRange

app property

Signature

typescript
app?: CoreApp;

data property

Contains query response filtered by refId of QueryResultBase and possible query error

Signature

typescript
data?: PanelData;

datasource property

Signature

typescript
datasource: DSType;

exploreId property

Signature

typescript
exploreId?: any;

history property

Signature

typescript
history?: HistoryItem[];

onBlur property

Signature

typescript
onBlur?: () => void;

onChange property

Signature

typescript
onChange: (value: TVQuery) => void;

onRunQuery property

Signature

typescript
onRunQuery: () => void;

queries property

Signature

typescript
queries?: DataQuery[];

query property

Signature

typescript
query: TVQuery;

range property

Signature

typescript
range?: TimeRange;