PanelPlugin: add deprecation notice to setEditor method (#23895)
This commit is contained in:
@@ -168,7 +168,11 @@ export class PanelPlugin<TOptions = any, TFieldConfigOptions extends object = an
|
|||||||
return this._optionEditors;
|
return this._optionEditors;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated setEditor is deprecated in favor of setPanelOptions
|
||||||
|
*/
|
||||||
setEditor(editor: ComponentClass<PanelEditorProps<TOptions>>) {
|
setEditor(editor: ComponentClass<PanelEditorProps<TOptions>>) {
|
||||||
|
deprecationWarning('PanelPlugin', 'setEditor', 'setPanelOptions');
|
||||||
this.editor = editor;
|
this.editor = editor;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user