mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
PanelPlugin: add deprecation notice to setEditor method (#23895)
This commit is contained in:
parent
68e5b72cde
commit
af00fa7214
@ -168,7 +168,11 @@ export class PanelPlugin<TOptions = any, TFieldConfigOptions extends object = an
|
||||
return this._optionEditors;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated setEditor is deprecated in favor of setPanelOptions
|
||||
*/
|
||||
setEditor(editor: ComponentClass<PanelEditorProps<TOptions>>) {
|
||||
deprecationWarning('PanelPlugin', 'setEditor', 'setPanelOptions');
|
||||
this.editor = editor;
|
||||
return this;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user