mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Plugins: ReactPanelPlugin to VizPanelPlugin (#16779)
* Plugins: ReactPanelPlugin renamed * Plugins: renamed PanelPlugin to PanelPluginMeta and VizPanelPlugin to PanelPlugin
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
import { ReactPanelPlugin } from '@grafana/ui';
|
||||
import { PanelPlugin } from '@grafana/ui';
|
||||
|
||||
import { TextPanelEditor } from './TextPanelEditor';
|
||||
import { TextPanel } from './TextPanel';
|
||||
import { TextOptions, defaults } from './types';
|
||||
|
||||
export const reactPanel = new ReactPanelPlugin<TextOptions>(TextPanel)
|
||||
export const plugin = new PanelPlugin<TextOptions>(TextPanel)
|
||||
.setDefaults(defaults)
|
||||
.setEditor(TextPanelEditor)
|
||||
.setPanelChangeHandler((options: TextOptions, prevPluginId: string, prevOptions: any) => {
|
||||
|
||||
Reference in New Issue
Block a user