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
| Property | Type | Description |
|---|---|---|
| app | CoreApp | |
| data | PanelData | Contains query response filtered by refId of QueryResultBase and possible query error |
| datasource | DSType | |
| exploreId | any | |
| history | Array<HistoryItem<TQuery>> | |
| onBlur | () => void | |
| onChange | (value: TVQuery) => void | |
| onRunQuery | () => void | |
| queries | DataQuery[] | |
| query | TVQuery | |
| range | TimeRange |
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?: Array<HistoryItem<TQuery>>;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;Was this page helpful?
Related resources from Grafana Labs
Additional helpful documentation, links, and articles:
Scroll for more