QueryEditorProps interface

Signature

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

Import

  1. import { QueryEditorProps } from '@grafana/data';

Properties

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

app property

Signature

  1. app?: CoreApp;

data property

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

Signature

  1. data?: PanelData;

datasource property

Signature

  1. datasource: DSType;

exploreId property

Signature

  1. exploreId?: any;

history property

Signature

  1. history?: Array<HistoryItem<TQuery>>;

onBlur property

Signature

  1. onBlur?: () => void;

onChange property

Signature

  1. onChange: (value: TVQuery) => void;

onRunQuery property

Signature

  1. onRunQuery: () => void;

queries property

Signature

  1. queries?: DataQuery[];

query property

Signature

  1. query: TVQuery;

range property

Signature

  1. range?: TimeRange;