module.tsx 515 B

123456789101112131415
  1. import { DataSourcePlugin } from '@grafana/ui';
  2. import { TestDataDatasource } from './datasource';
  3. import { TestDataQueryCtrl } from './query_ctrl';
  4. import { ConfigEditor } from './ConfigEditor';
  5. class TestDataAnnotationsQueryCtrl {
  6. annotation: any;
  7. constructor() {}
  8. static template = '<h2>Annotation scenario</h2>';
  9. }
  10. export const plugin = new DataSourcePlugin(TestDataDatasource)
  11. .setConfigEditor(ConfigEditor)
  12. .setQueryCtrl(TestDataQueryCtrl)
  13. .setAnnotationQueryCtrl(TestDataAnnotationsQueryCtrl);