# Migration from setEditor to setPanelOptions

**URL:** <https://community.grafana.com/t/migration-from-seteditor-to-setpaneloptions/49744>\
**Category:** Grafana Plugin Development\
**Tags:** panel\
**Created:** [June 30, 2021, 2:14pm UTC](https://community.grafana.com/t/migration-from-seteditor-to-setpaneloptions/49744 "2021-06-30T14:14:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mferri](https://avatars.discourse-cdn.com/v4/letter/m/f19dbf/32.png) [@mferri](https://community.grafana.com/u/mferri)\
**Post date:** [June 30, 2021, 2:14pm UTC](https://community.grafana.com/t/migration-from-seteditor-to-setpaneloptions/49744/1 "2021-06-30T14:14:42Z")

</div>

Hello,

I’m using Grafana 7.0.3 for developing my panel plugin and I’m trying to update Grafana to latest version (8.0.3).  
I’m actually blocked in migration of the deprecated function setDefaults and setEditor in favor to setPanelOptions, in file module.ts.  
So I need community help to resolve this questions:

1. In new function setPanelOptions, it’s possible to pass 2 o more keys (path option) for change my plugin interface? The best solution for my problem is to pass all interface in order to use the old editor class in the same way.
2. There are a way to use use the same props present in PanelEditorProps ({options, onOprionsChange, data, …}), by setEditor, in the new setPanelOptions function?

Best regards,  
Maurizio.

---

<div class="post-metadata">

**Author:** ![xiaonuno](https://avatars.discourse-cdn.com/v4/letter/x/838e76/32.png) [@xiaonuno](https://community.grafana.com/u/xiaonuno)\
**Post date:** [August 6, 2021, 9:11am UTC](https://community.grafana.com/t/migration-from-seteditor-to-setpaneloptions/49744/2 "2021-08-06T09:11:27Z")

</div>

Hello, if this is still relevant to you, you can try this:

> **[Custom panel option editors](https://grafana.com/docs/grafana/latest/developers/plugins/custom-panel-option-editors/)**
>
> Custom panel option editors The Grafana plugin platform comes with a range of editors that allow your users to customize a panel. The standard editors …

It states how to add a custom editor.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/grafana/original/2X/e/ef5308cc58c9e5a13187b5012eb99f406928462f.png) [@system](https://community.grafana.com/u/system)\
**Post date:** [August 6, 2022, 9:12am UTC](https://community.grafana.com/t/migration-from-seteditor-to-setpaneloptions/49744/3 "2022-08-06T09:12:16Z")

</div>

Closed on August 6, 2022, 9:12am UTC

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
