API Reference@grafana/data › PanelTypeChangedHandler

PanelTypeChangedHandler type

PanelTypeChangedHandler type

Called before a panel is initialized. Allows panel inspection for any updates before changing the panel type.

Signature

export declare type PanelTypeChangedHandler<TOptions = any> = (panel: PanelModel<TOptions>, prevPluginId: string, prevOptions: any) => Partial<TOptions>;

Import

import { PanelTypeChangedHandler } from '@grafana/data';