InputConfigCtrl.ts 495 B

123456789101112131415161718192021
  1. import { SeriesData } from '@grafana/ui';
  2. // Loads the angular wrapping directive
  3. import './CSVInputWrapper';
  4. export class TableConfigCtrl {
  5. static templateUrl = 'legacy/config.html';
  6. current: any; // the Current Configuration (set by the plugin infra)
  7. /** @ngInject */
  8. constructor($scope: any, $injector: any) {
  9. console.log('TableConfigCtrl Init', this);
  10. }
  11. onParsed = (data: SeriesData[]) => {
  12. this.current.jsonData.data = data;
  13. };
  14. }
  15. export default TableConfigCtrl;