Moving from setPanelEditor to setPanelOptions

I’m updating my code to upgrade from the deprecated setPanelEditor, to setPanelOptions.
With setPanelOptions, is it still possible to get event like onChange or onClick when the user changes a setting or click on a button?

Typically, that’s what I was doing with setPanelEditor:

<HorizontalGroup>
    <IconButton
        name="trash-alt"
        size="xl"
        surface="panel"
        onClick={event => this.onDeleteItem(event, index)}
    />
    <IconButton name="copy" size="xl" surface="panel" onClick= {event => this.onCloneItem(event, oneItem)} />
</HorizontalGroup>

Thanks

The panel options editors are bound to the property in the panel options interface, which means that Grafana handles the changes for you.

If you want to handle the changes yourself, you can build a custom editor. See here for an example: