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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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