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: Record<string, any>, prevFieldConfig: FieldConfigSource) => Partial<TOptions>;
Import
import { PanelTypeChangedHandler } from '@grafana/data';