module.tsx 503 B

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