Commit af00fa72 by Dominik Prokop Committed by GitHub

PanelPlugin: add deprecation notice to setEditor method (#23895)

parent 68e5b72c
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment