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

This commit is contained in:
Dominik Prokop
2020-04-25 22:46:51 +02:00
committed by GitHub
parent 68e5b72cde
commit af00fa7214

View File

@@ -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;
}