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> 

Import

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

Properties

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

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: TQuery) => void;

onRunQuery property

Signature

typescript
onRunQuery: () => void;

query property

Signature

typescript
query: TQuery;

range property

Signature

typescript
range?: TimeRange;