Files
grafana/public/app/plugins/panel/bargauge/module.tsx

12 lines
473 B
TypeScript
Raw Normal View History

import { ReactPanelPlugin } from '@grafana/ui';
2019-02-15 12:55:35 +01:00
import { BarGaugePanel } from './BarGaugePanel';
import { BarGaugePanelEditor } from './BarGaugePanelEditor';
import { BarGaugeOptions, defaults } from './types';
2019-03-15 08:38:29 -07:00
import { singleStatBaseOptionsCheck } from '../singlestat2/module';
2019-03-22 13:12:35 -07:00
export const reactPanel = new ReactPanelPlugin<BarGaugeOptions>(BarGaugePanel, defaults);
2019-02-15 12:55:35 +01:00
2019-03-22 13:12:35 -07:00
reactPanel.editor = BarGaugePanelEditor;
reactPanel.onPanelTypeChanged = singleStatBaseOptionsCheck;