mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
PanelRenderer: Improves PanelRenderer performance (#51092)
* PanelRenderer: Improves PanelRenderer performance * Minor refactor * remove old func
This commit is contained in:
@@ -375,4 +375,8 @@ export class PanelPlugin<
|
||||
getSuggestionsSupplier(): VisualizationSuggestionsSupplier | undefined {
|
||||
return this.suggestionsSupplier;
|
||||
}
|
||||
|
||||
hasPluginId(pluginId: string) {
|
||||
return this.meta.id === pluginId;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,6 +16,7 @@ export interface PanelRendererProps<P extends object = any, F extends object = a
|
||||
title: string;
|
||||
options?: Partial<P>;
|
||||
onOptionsChange?: (options: P) => void;
|
||||
onFieldConfigChange?: (config: FieldConfigSource<F>) => void;
|
||||
onChangeTimeRange?: (timeRange: AbsoluteTimeRange) => void;
|
||||
fieldConfig?: FieldConfigSource<Partial<F>>;
|
||||
timeZone?: string;
|
||||
|
||||
Reference in New Issue
Block a user