2019-02-16 16:02:31 +01:00
|
|
|
import { ReactPanelPlugin } from '@grafana/ui';
|
|
|
|
|
|
2019-02-15 12:55:35 +01:00
|
|
|
import { BarGaugePanel } from './BarGaugePanel';
|
2019-02-16 16:02:31 +01:00
|
|
|
import { BarGaugePanelEditor } from './BarGaugePanelEditor';
|
|
|
|
|
import { BarGaugeOptions, defaults } from './types';
|
2019-03-15 08:38:29 -07:00
|
|
|
import { singleStatBaseOptionsCheck } from '../singlestat2/module';
|
2019-02-16 16:02:31 +01:00
|
|
|
|
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;
|