mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
* Plugins: ReactPanelPlugin renamed * Plugins: renamed PanelPlugin to PanelPluginMeta and VizPanelPlugin to PanelPlugin
11 lines
510 B
TypeScript
11 lines
510 B
TypeScript
import { PanelPlugin, sharedSingleStatMigrationCheck, sharedSingleStatOptionsCheck } from '@grafana/ui';
|
|
import { SingleStatOptions, defaults } from './types';
|
|
import { SingleStatPanel } from './SingleStatPanel';
|
|
import { SingleStatEditor } from './SingleStatEditor';
|
|
|
|
export const plugin = new PanelPlugin<SingleStatOptions>(SingleStatPanel)
|
|
.setDefaults(defaults)
|
|
.setEditor(SingleStatEditor)
|
|
.setPanelChangeHandler(sharedSingleStatOptionsCheck)
|
|
.setMigrationHandler(sharedSingleStatMigrationCheck);
|