mirror of
https://github.com/grafana/grafana.git
synced 2025-02-20 11:48:34 -06:00
14 lines
435 B
TypeScript
14 lines
435 B
TypeScript
import { DataSourcePlugin } from '@grafana/ui';
|
|
import { TestDataDatasource } from './datasource';
|
|
import { TestDataQueryCtrl } from './query_ctrl';
|
|
|
|
class TestDataAnnotationsQueryCtrl {
|
|
annotation: any;
|
|
constructor() {}
|
|
static template = '<h2>Annotation scenario</h2>';
|
|
}
|
|
|
|
export const plugin = new DataSourcePlugin(TestDataDatasource)
|
|
.setQueryCtrl(TestDataQueryCtrl)
|
|
.setAnnotationQueryCtrl(TestDataAnnotationsQueryCtrl);
|