mirror of
https://github.com/grafana/grafana.git
synced 2025-02-20 11:48:34 -06:00
* Plugins: ReactPanelPlugin renamed * Plugins: renamed PanelPlugin to PanelPluginMeta and VizPanelPlugin to PanelPlugin
11 lines
485 B
TypeScript
11 lines
485 B
TypeScript
import { PanelPlugin, sharedSingleStatMigrationCheck, sharedSingleStatOptionsCheck } from '@grafana/ui';
|
|
import { GaugePanelEditor } from './GaugePanelEditor';
|
|
import { GaugePanel } from './GaugePanel';
|
|
import { GaugeOptions, defaults } from './types';
|
|
|
|
export const plugin = new PanelPlugin<GaugeOptions>(GaugePanel)
|
|
.setDefaults(defaults)
|
|
.setEditor(GaugePanelEditor)
|
|
.setPanelChangeHandler(sharedSingleStatOptionsCheck)
|
|
.setMigrationHandler(sharedSingleStatMigrationCheck);
|