module.tsx 485 B

12345678910
  1. import { PanelPlugin, sharedSingleStatMigrationCheck, sharedSingleStatOptionsCheck } from '@grafana/ui';
  2. import { GaugePanelEditor } from './GaugePanelEditor';
  3. import { GaugePanel } from './GaugePanel';
  4. import { GaugeOptions, defaults } from './types';
  5. export const plugin = new PanelPlugin<GaugeOptions>(GaugePanel)
  6. .setDefaults(defaults)
  7. .setEditor(GaugePanelEditor)
  8. .setPanelChangeHandler(sharedSingleStatOptionsCheck)
  9. .setMigrationHandler(sharedSingleStatMigrationCheck);