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
Property | Type | Description |
---|---|---|
data | PanelData | Contains query response filtered by refId of QueryResultBase and possible query error |
datasource | DSType | |
exploreId | any | |
history | HistoryItem[] | |
onBlur | () => void | |
onChange | (value: TQuery) => void | |
onRunQuery | () => void | |
query | TQuery | |
range | TimeRange |
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;
Was this page helpful?
Related resources from Grafana Labs
Additional helpful documentation, links, and articles:
Video
Getting started with the Grafana LGTM Stack
In this webinar, we’ll demo how to get started using the LGTM Stack: Loki for logs, Grafana for visualization, Tempo for traces, and Mimir for metrics.
Video
Getting started with Grafana dashboard design
In this webinar, you'll learn how to design stylish and easily accessible Grafana dashboards that tell a story.
Video
Building advanced Grafana dashboards
In this webinar, we’ll demo how to build and format Grafana dashboards.