module.tsx 479 B

123456789101112
  1. import { ReactPanelPlugin } from '@grafana/ui';
  2. import { GaugePanelEditor } from './GaugePanelEditor';
  3. import { GaugePanel } from './GaugePanel';
  4. import { GaugeOptions, defaults } from './types';
  5. import { singleStatBaseOptionsCheck } from '../singlestat2/module';
  6. export const reactPanel = new ReactPanelPlugin<GaugeOptions>(GaugePanel);
  7. reactPanel.setEditor(GaugePanelEditor);
  8. reactPanel.setDefaults(defaults);
  9. reactPanel.setPanelTypeChangedHook(singleStatBaseOptionsCheck);